Distinguished event when minion firstly connects with auto_accept: true #67532
Replies: 7 comments
-
when i set
You should be able to react off of that event? |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, that event triggers on every minion connect, restart, etc. We do quite heavy lifting in the primer orch so to run it on this event would trigger on every minion upgrade, sys reboot |
Beta Was this translation helpful? Give feedback.
-
@mruepp I had this same issue I ended up having my reactor accept the key on minion first connect. Reactor
|
Beta Was this translation helpful? Give feedback.
-
Indeed thats the best solution. But generally asking nonetheless, shouldn´t be a dedicated event raised if minion gets accepted by auto_accept? |
Beta Was this translation helpful? Give feedback.
-
i think we could probably add an event there as well. |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
Description of Issue/Question
We need to run an orchestrator on the first minion start event.
We run a reactor on salt key accept events. But we want to set auto_accept to true on the master and in that case, no salt key events are published.
Is there any way how we can trigger a reactor on the first key accept with the auto_accept option to true?
Setup
(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)
Steps to Reproduce Issue
(Include debug logs if possible and relevant.)
Versions Report
Salt Version:
Salt: 2018.3.2
Dependency Versions:
cffi: 1.6.0
cherrypy: Not Installed
dateutil: Not Installed
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.7.2
libgit2: 0.26.3
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.5.6
mysql-python: Not Installed
pycparser: 2.14
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: 0.26.4
Python: 2.7.5 (default, Jul 13 2018, 13:06:57)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 15.3.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.1.4
System Versions:
dist: centos 7.5.1804 Core
locale: UTF-8
machine: x86_64
release: 3.10.0-862.14.4.el7.x86_64
system: Linux
version: CentOS Linux 7.5.1804 Core
Beta Was this translation helpful? Give feedback.
All reactions