Skip to content
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

Inverted logic for starting service in standalone mode #399

Closed
mrichar1 opened this issue Feb 4, 2019 · 2 comments
Closed

Inverted logic for starting service in standalone mode #399

mrichar1 opened this issue Feb 4, 2019 · 2 comments

Comments

@mrichar1
Copy link
Contributor

mrichar1 commented Feb 4, 2019

In standalone mode, the code seems to enable the salt-minion service if master_type is defined and set to disabled:

{%- if salt_settings.minion.master_type is defined and salt_settings.minion.master_type == 'disable' %}
  service.running:
    - enable: True
{%- else %}
  service.dead:
    - enable: False

https://github.com/saltstack-formulas/salt-formula/blob/master/salt/standalone.sls#L19-L21

However the salt docs for master_type says:

this option can be set to disable and the minion will never attempt to talk to the master. This is useful for running a masterless minion daemon.

https://docs.saltstack.com/en/latest/ref/configuration/minion.html#master-type

Is the logic in standalone.sls backwards?

@aboe76
Copy link
Member

aboe76 commented Feb 4, 2019

I have tested the code standalone.sls which means running the salt minion as masterless.
You need to have a minion daemon running to do some mine/reactor stuff.
if you don't need mine/reactor then disabling the minion daemon is an option.

@mrichar1
Copy link
Contributor Author

mrichar1 commented Feb 4, 2019

Ahh - I see - if the config asks for the minion to be disabled, there is an implication that is should be running, but not speaking to the master. Thanks for clearing that up! will close issue and PR.

@mrichar1 mrichar1 closed this as completed Feb 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants