[chef] cookbook file converge does not work on first run ?


Chronological Thread 
  • From: Manoj Thakkar < >
  • To: " " < >
  • Subject: [chef] cookbook file converge does not work on first run ?
  • Date: Sat, 16 Nov 2013 11:44:15 -0800

Hi,

i have seen t multiple times in my recipe i dont know whats the root cause,

I make a change in the cookbook file , upload the cookbook & then run chef-client on the machine.

i see the file changes picked up , but the chef-client run still picks the old changes in the file , any idea why ?

Am i missing a setting somewhere ,

Here is an example of what is happening, if you look at he logs below, i changed the value from 'acc1','acc2' to acc1,acc2 and it was picked up , but even then the chef-client run is creating [/local_app/test/'acc1']  ... what is wrong.

Please help and advise.

Thanks
MAnoj


[2013-11-16T11:37:50-08:00] INFO: cookbook_file[/local_app/order-rest.properties] created file /local_app/order-rest.properties

    - create a new cookbook_file /local_app/order-rest.properties
        --- /local_app/order-rest.properties    2013-11-16 11:32:00.342657412 -0800
        +++ /var/chef/cache/cookbooks/base_tomcat/files/default/order-rest.properties   2013-11-16 11:37:50.280816205 -0800
        @@ -1,3 +1,3 @@
         pbldejksu300:acc1,acc2
        -pdevecsas300:'acc1','acc2'
        +pdevecsas300:acc1,acc2
         ppdsecsas300:acc1,acc2

  * directory[/local_app/test/'acc1'] action create[2013-11-16T11:37:50-08:00] INFO: Processing directory[/local_app/test/'acc1'] action create (base_tomcat::new1 line 29)
[2013-11-16T11:37:50-08:00] INFO: directory[/local_app/test/'acc1'] created directory /local_app/test/'acc1'



Archive powered by MHonArc 2.6.16.

§