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

replace bad value for master_type in example minion config #25081

Merged
merged 1 commit into from
Jul 1, 2015
Merged

replace bad value for master_type in example minion config #25081

merged 1 commit into from
Jul 1, 2015

Conversation

gladiatr72
Copy link
Contributor

At some point, standard became an invalid argument for the master_type
minion config bit wrt Minion.eval_master(). 'str' is what is reflected in https://github.com/saltstack/salt/blob/develop/salt/config.py#L74. I haven't tracked down what changed elsewhere to make this a problem but have found that setting this in the opts.cloud.minion dict alleviates the problem of a newly minted minion soiling itself when trying to activate at the end of the bootstrap run.

Perhaps whatever code bit is laying down this squint-worthy minion config should probably just drop an empty /etc/salt/minion file letting it get updated with non-default values rather than trying to set every available minion opt.

  • mad props to the creators/maintainers of the bootstrap script. BASH makes
    me want to cut myself, so I appreciate complex scripts that are so
    very functional that I don't have to be responsible for

At some point, `standard` became an invalid argument for the master_type
minion config bit.  The bootstrap script, perhaps naively, uses this
file to lay down a minion config for a newly bootstrapped system.

bootstrap.sh should probably just drop an empty /etc/salt/minion rather
than trying to set every available minion opt.

In lieu of wading into bootstrap*, this allows Minion.eval_master() to
not soil itself and continue on its merry way when not operating in one
of its more advanced contexts.

* mad props to the creators/maintainers of the bootstrap script.  BASH makes
  me want to cut myself, so I appreciate complex scripts that are so
  very functional that I don't have to be responsible for
@justinta justinta added Core relates to code central or existential to Salt Minor Change labels Jun 30, 2015
@justinta
Copy link

@gladiatr72 Thanks for the PR!

@s0undt3ch
Copy link
Collaborator

Thanks for the mad props! I'm not alone at maintaining the script but I started and maintain (try) the madness 😄

cachedout pushed a commit that referenced this pull request Jul 1, 2015
…r_type-adjustment

replace bad value for master_type in example minion config
@cachedout cachedout merged commit dd80bec into saltstack:develop Jul 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core relates to code central or existential to Salt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants