[chef] Re: Using ark to update some files


Chronological Thread 
  • From: Bryan Berry < >
  • To:
  • Subject: [chef] Re: Using ark to update some files
  • Date: Sat, 1 Sep 2012 08:16:25 +0200

Hey autif, this is indeed a problem with how ark updates changed resources. The put action only checks whether the destination folder exists or not. It should be smarter than this. As the author of ark,  I honestly don't know when I will get around to fixing this. I have a huge backlog of other public cookbook issues to fix.

Please do create a ticket at tickets.opscode.com. that will help speed the process along

On Aug 31, 2012 5:36 PM, "Autif Khan" < "> > wrote:
I want to use ark to untar some files at some path. But I am not able
to update those files by modifying the recipe.

I am using the following recipe:

  1 ark 'app' do
  2
  3         url 'http://192.168.2.50:8080/ubuntu/app-0.0.1.tar.gz'
  4         checksum
'66a8e3b8716106cfc3436c2edfcb97fc5474b5d48f48fa96cf104c35b705dfaa'
  5
  6 #       url 'http://192.168.2.50:8080/ubuntu/app-0.0.2.tar.gz'
  7 #       checksum
'13a88b5594ad0180e5547a7a22cdb74a0c3a4f89a45f33a28936e72f00c8fdd4'
  8
  9         action :put
 10         path '/home/koko'
 11 end

The recipe works fine the first time. app-0.0.1 is unzipped correctly
in /home/koko

The problem is that when I delete lines 3 and 4 and uncomment lines 6
and 7 and push the recipe to chef server, and then run chef-client on
a node, I do not get the contents of app-0.0.2.tar.gz in
/home/koko/app. Those files are unchanged.

Also, the app.tar.gz in cache is unchanged (it is same as app-0.0.1.tar.gz)

However, the recipes in the downloaded cookbooks is indeed changed -
where lines 3 and 4 are deleted and lines 6 and 7 are uncommented.

So ....

What am I doing wrong?

Am I using ark in a way it was not meant to OR am I not using it properly?

Please advise

Thanks

Autif



Archive powered by MHonArc 2.6.16.

§