specify exact cookbook version in node run_list still possible?
Asked Answered
D

1

18

I have this in my notes that {"run_list":["recipe[[email protected]]"]} is possible to explicitly specify a cookbook version to use in a nodes run_list but i can't get it to work and can't find any documentation to say if this is still supported or if it's been deprecated.

This is using chef 11.18.0. Can anyone confirm if this is still OK to use and where this should be configured. In the node run_list or role run_list ?

thanks

Dato answered 29/1, 2015 at 4:9 Comment(1)
Here is the issue and commit that removed the documentation: github.com/chef/chef-web-docs-2016/issues/574Whimsey
B
31

You can specify a version of a cookbook exactly as you stated. The format is recipe[cookbook_name::recipe_name@cookbook_version]. You do not need to include the recipe_name (or the ::) if you're using the default recipe.

It works both in a role and in a runlist. You can specify it on command line when bootstrapping, add it to a node, etc.

http://www.rubydoc.info/gems/chef/Chef/RunList/RunListItem

Brathwaite answered 7/5, 2015 at 14:13 Comment(1)
How can I change this via the Web Management GUI of the chef server? I use the chef-client recipe. In the selection window with the drag+drop fields, I don't see where I can specify the versionCyndi

© 2022 - 2024 — McMap. All rights reserved.