-
Notifications
You must be signed in to change notification settings - Fork 164
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
Comments
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." |
Do you run complete true on the machine resource, the batch, or on the whole recipe? |
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. |
Thanks! That works. |
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?
The text was updated successfully, but these errors were encountered: