I am running the below command in powershell to perform chef operations.
chef-client -o 'recipe[cookbook]' -j attributes-file.json
Contents of the json file is as below
{
"param1": {
"param2":["value1","value2","value3"]
}
}
When we run the chef-client, for the first time, there attributes are set in the chef-node and are successful. But we run the same command for the second time with different "param2" contents, eg. "param2":["value4","value5"], it still picks up ["value1","value2","value3"] as the value.
How do we override the existing values in chef-client? and/or unset the node values, after execution?
Please Note: we cannot execute knife commands as the chef is run remotely triggered via Cloudify.
-ovs.-r? - coderanger