How to set chef attributes via Jenkins? -


i want run set of generic cookbooks user-selected version of our product in our lab, , want use jenkins this. best way jenkins job pass information during node bootstrap? via -j option, example -j '{"load_version" : "$load_version"}', $load_version parameter of jenins job several choices?

yes, -j let supply json blob of attributes first chef-client run of recipes.

it's best add scope node attributes if expand things have less chance of clashing other attributes.

knife bootstrap <host> -r 'recipe[your_cb::your_recipe]' -j '{ "your_cb": { "load_version": "$load_version" } }' 

Comments

Popular posts from this blog

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

clojure - 'get' replacement that throws exception on not found? -