Chef-client to get update with latest roles


#1

hi,

i have open source chef server,client and workstation,

If i upload cookbook and add it to a role and update that to node.

In client with chef-client -f -o ‘role[name]’ is trying to install the
application.
With chef-client command,it is not able to detect new role

Is there any way for the chef-client to install the new application for the
role created in server without mentioning new role name?

thanks,


#2

Le 2014-11-19 14:54, kritivagop01 . a écrit :

hi,

i have open source chef server,client and workstation,

If i upload cookbook and add it to a role and update that to node.

In client with chef-client -f -o ‘role[name]’ is trying to install the application.
With chef-client command,it is not able to detect new role

Is there any way for the chef-client to install the new application for the role created in server without mentioning new role name?

thanks,

Sounds like you didn’t add the role to the node runlist. (unsure what
you did when you say ‘update that to node’)

With -o you specify a one time runlist and it works.

You may:

  1. use -r instead of -o to specify a permanent runlist to be updated at
    the end of the chef-client run.

  2. use knife to edit the noed runlist (knife node run_list add
    ‘role[name]’

  3. use the web interface to update node runlist.

For knife syntax (2) see
https://docs.getchef.com/knife_node.html#run-list-add


#3

hi ,

thanks Tensibai for the details,I will try it out and update the status.

Please check if you can share details for below query also?

I tried to setup open source chef and able to install to client with
application in the cookbook.
Also i was able to do the bootstrap to new node.
I have followed Install_pushjobs document from chef and tried setting up in
chef server.
For knife node status also,i have tried installing the gem in the
workstation.

While setting up push jobs ,i was able to set up in server and also added
the push jobs recipe in run list of the node and with the attributes.

In client,i have installed the opscode-push-job-client and started the
service using pushy_client.

I am not able to achieve the push job with the new role added to runlist in
the node.

could you please share the document if i have missed anything for the push
jobs.

thanks,

On Wed, Nov 19, 2014 at 7:53 PM, Tensibai tensibai@iabis.net wrote:

Le 2014-11-19 14:54, kritivagop01 . a écrit :

hi,

i have open source chef server,client and workstation,

If i upload cookbook and add it to a role and update that to node.

In client with chef-client -f -o ‘role[name]’ is trying to install the
application.
With chef-client command,it is not able to detect new role

Is there any way for the chef-client to install the new application for
the role created in server without mentioning new role name?

thanks,

Sounds like you didn’t add the role to the node runlist. (unsure what you
did when you say ‘update that to node’)

With -o you specify a one time runlist and it works.

You may:

  1. use -r instead of -o to specify a permanent runlist to be updated at
    the end of the chef-client run.

  2. use knife to edit the noed runlist (knife node run_list add
    ‘role[name]’

  3. use the web interface to update node runlist.

For knife syntax (2) see
https://docs.getchef.com/knife_node.html#run-list-add


#4

Top posting, ok.

Sorry, but I’m not working with push jobs, so can’t be of any help with
this.

I try to avoid calling chef-client manually as most as I can (cron
job/scheduled task running every 30 mins on the boxes here)

Le 2014-11-19 15:41, kritivagop01 . a écrit :

hi ,

thanks Tensibai for the details,I will try it out and update the status.

Please check if you can share details for below query also?

I tried to setup open source chef and able to install to client with application in the cookbook.
Also i was able to do the bootstrap to new node.
I have followed Install_pushjobs document from chef and tried setting up in chef server.
For knife node status also,i have tried installing the gem in the workstation.

While setting up push jobs ,i was able to set up in server and also added the push jobs recipe in run list of the node and with the attributes.

In client,i have installed the opscode-push-job-client and started the service using pushy_client.

I am not able to achieve the push job with the new role added to runlist in the node.

could you please share the document if i have missed anything for the push jobs.

thanks,

On Wed, Nov 19, 2014 at 7:53 PM, Tensibai tensibai@iabis.net wrote:

Le 2014-11-19 14:54, kritivagop01 . a écrit :

hi,

i have open source chef server,client and workstation,

If i upload cookbook and add it to a role and update that to node.

In client with chef-client -f -o ‘role[name]’ is trying to install the application.
With chef-client command,it is not able to detect new role

Is there any way for the chef-client to install the new application for the role created in server without mentioning new role name?

thanks,

Sounds like you didn’t add the role to the node runlist. (unsure what you did when you say ‘update that to node’)

With -o you specify a one time runlist and it works.

You may:

  1. use -r instead of -o to specify a permanent runlist to be updated at the end of the chef-client run.

  2. use knife to edit the noed runlist (knife node run_list add ‘role[name]’

  3. use the web interface to update node runlist.

For knife syntax (2) see https://docs.getchef.com/knife_node.html#run-list-add [1]

Links:

[1] https://docs.getchef.com/knife_node.html#run-list-add