-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[develop] Initial work to allow running multiple instances of a Salt engine #50059
[develop] Initial work to allow running multiple instances of a Salt engine #50059
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM so far.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
Just to clarify, this is for running multiple instances of the same engine, yes? |
@cachedout exactly. |
salt/engines/__init__.py
Outdated
@@ -46,10 +46,22 @@ def start_engines(opts, proc_mgr, proxy=None): | |||
engine, engine_opts = next(iter(engine.items())) | |||
else: | |||
engine_opts = None | |||
fun = '{0}.start'.format(engine) | |||
engine_name = None | |||
if engine_opts is not None and 'type' in engine_opts: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is that 'type' coming from? It's a new configuration for an engine?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type
would be a new configuration option in the engine configuration, so it would contain strings like slack
or script
depending on what type of engine the particular stanza in the configuration would be providing.
f56f5e2
to
ec75a3c
Compare
…ut new engine_type parameter
0c3bd91
to
d84993b
Compare
@rares-pop How does this look to you now? |
@rallytime - it looks good! It adds a very nice functionality. I like 'engine_module' better than the previously 'type'. Good job @garethgreenaway! |
[master] Porting #50059 to master
What does this PR do?
Initial work to allow running multiple instances of a Salt engine
What issues does this PR fix or reference?
N/A
Tests written?
Yes.
Commits signed with GPG?
Yes
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.