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

How to run state.highstate within states? #29275

Closed
albdv opened this issue Nov 30, 2015 · 6 comments
Closed

How to run state.highstate within states? #29275

albdv opened this issue Nov 30, 2015 · 6 comments
Labels
Question The issue is more of a question rather than a bug or a feature request
Milestone

Comments

@albdv
Copy link

albdv commented Nov 30, 2015

I was trying to understand how to run state.highstate within state by using Salt States Module and it is not very clear for me how I could pass the target minion in that case.

@sjorge
Copy link
Contributor

sjorge commented Dec 1, 2015

If I understand the docs correctly, this will execute a salt module call on the minion the state gets applied to.

@jfindlay jfindlay added the Question The issue is more of a question rather than a bug or a feature request label Dec 1, 2015
@jfindlay jfindlay added this to the Blocked milestone Dec 1, 2015
@jfindlay
Copy link
Contributor

jfindlay commented Dec 1, 2015

@Beastea, you can do this like this:

run_highstate:
  module.run:
    - name: state.highstate

@albdv
Copy link
Author

albdv commented Dec 1, 2015

@jfindlay but how can I specify the minion as a target then?

@jfindlay
Copy link
Contributor

jfindlay commented Dec 2, 2015

@Beastea that logic is usually handled by the process initiating the state run, like the CLI, for example.

salt 'targeted-minions-*' state.apply highstate

Can you give more context on what you're trying to do? You may want to use a runner or a reactor instead.

@albdv
Copy link
Author

albdv commented Dec 3, 2015

@jfindlay thank you to clarify this moment. Now everything clear for me. Issue might be closed now. Thanks a lot once more.

@jfindlay
Copy link
Contributor

jfindlay commented Dec 4, 2015

@Beastea, no problem. Be sure to ask more questions if you have them.

@jfindlay jfindlay closed this as completed Dec 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question The issue is more of a question rather than a bug or a feature request
Projects
None yet
Development

No branches or pull requests

3 participants