Hi Chefs,
Has someone of you worked with Chef 12 and it's push job module?
I have tested it and it seems very nice and useful facility but I can't figure out hot to manage it in bulk.
As for adding new push-commands you have to go to client and edit client.rb file with some white-listed commands in JSON format.
E.G.:
whitelist({"chef-client"=>"chef-client",
"ipconfig"=>"ipconfig /all > c:/ipconfigtest.txt"
})
Even though it's said in Chef's doc page that we just need to add it to node's attributes.
E.G.:
knife exec -E "nodes.transform(name:'*node_name*') {|n| n.set['push_jobs']['whitelist']['ipconfig2'] = 'ipconfig /all > c:/ipconfigtest2.txt'; end}"
But in fact we should add it to client.rb, pushy-client.rb and restart pushy-client service on windows box.
Yeap. I am working with windows platform.
And even if I don't add these attributes to node's attributes but add to client.rb and pushy-client.rb everything works with no issues at all...
So I am a bit confused why we need these white-list commands to be added to nodes attributes at all.
Thank you in advance for your replies and advises.
Regards,
Taras.