Skip to content

Changing the runlist of a machine #95

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

Closed
mwrock opened this issue Jul 2, 2014 · 4 comments
Closed

Changing the runlist of a machine #95

mwrock opened this issue Jul 2, 2014 · 4 comments

Comments

@mwrock
Copy link
Contributor

mwrock commented Jul 2, 2014

If I change a provisioning recipe with a different set of recipes, when my provisioner reconverges an existing set of machines, the recipe changes are purely additive. New recipes are added but how do I remove existing recipes?

@jkeiser
Copy link
Contributor

jkeiser commented Jul 2, 2014

You can either set run_list [ ... ] which overwrites the run list, or you can pass the "complete true" argument which says "the things you see here are a complete definition of this machine, please remove anything I didn't write from attributes and run list."

@joshzitting
Copy link

Do you run complete true on the machine resource, the batch, or on the whole recipe?

@jkeiser
Copy link
Contributor

jkeiser commented Jul 2, 2014

This will strip any normal attributes and any other parts of the run list:

machine 'blah' do
  recipe 'foo'
  complete true
end

This will strip other parts of the run list, but not normal attributes:

machine 'blah' do
  run_list [ 'foo' ]
end

You might have to set run_list to [ 'recipe[foo]' ] instead of just 'foo', but I think just 'foo' will work.

@mwrock
Copy link
Contributor Author

mwrock commented Jul 2, 2014

Thanks! That works.

@mwrock mwrock closed this as completed Jul 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants