- From: Autif Khan <
>
- To:
- Subject: [chef] Using ark to update some files
- Date: Fri, 31 Aug 2012 11:36:17 -0400
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
- [chef] Using ark to update some files, Autif Khan, 08/31/2012
Archive powered by MHonArc 2.6.16.