Hi,
I created a role, a node and added the chef-client recipe to this role and
then added the role to the node. So far, so good. Now, I would like that
for a particular node that has this role the chef client run interval to be
different then 30min. How can I do this? As of now, my node configuration
looks like this:
{
“normal”: {
“tags”: [
]
},
“name”: “mee13”,
“chef_environment”: “_default”,
“run_list”: [
“role[developer]”
]
}
I added
{
“normal”: {
“tags”: [
]
},
“name”: “mee13”,
“chef_environment”: “_default”,
“chef_client”: {
“interval”: 5
},
“run_list”: [
“role[developer]”
]
}
But the node config was not updated. What is wrong?
Thanks
Kelly
Hi Kelly - you need to set the interval in the /etc/chef/client.rb file or from the command line when you start the daemon (most likely, /etc/chef/client.rb is what you want.)
Best,
adam
Opscode, Inc.
Adam Jacob, Chief Customer Officer
T: (206) 619-7151 E: adam@opscode.com
On Jan 4, 2012, at 8:25 AM, Kelly Goedert wrote:
Hi,
I created a role, a node and added the chef-client recipe to this role and then added the role to the node. So far, so good. Now, I would like that for a particular node that has this role the chef client run interval to be different then 30min. How can I do this? As of now, my node configuration looks like this:
{
"normal": {
"tags": [
]
},
"name": "mee13",
"chef_environment": "_default",
"run_list": [
"role[developer]"
]
}
I added
{
"normal": {
"tags": [
]
},
"name": "mee13",
"chef_environment": "_default",
"chef_client": {
"interval": 5
},
"run_list": [
"role[developer]"
]
}
But the node config was not updated. What is wrong?
Thanks
Kelly