# Nodes, roles and recipes

**URL:** <https://discourse.chef.io/t/nodes-roles-and-recipes/2396>\
**Category:** Chef Infra (archive)\
**Created:** [January 4, 2012, 4:25pm UTC](https://discourse.chef.io/t/nodes-roles-and-recipes/2396 "2012-01-04T16:25:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kelly\_Goedert](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/kelly_goedert/32/769_2.png) [@Kelly\_Goedert](https://discourse.chef.io/u/Kelly_Goedert)\
**Post date:** [January 4, 2012, 4:25pm UTC](https://discourse.chef.io/t/nodes-roles-and-recipes/2396/1 "2012-01-04T16:25:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Adam\_Jacob](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/adam_jacob/32/292_2.png) [@Adam\_Jacob](https://discourse.chef.io/u/Adam_Jacob)\
**Post date:** [January 4, 2012, 5:27pm UTC](https://discourse.chef.io/t/nodes-roles-and-recipes/2396/2 "2012-01-04T17:27:53Z")

</div>

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](mailto: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
