- From: Michael Lindsay <
>
- To:
- Cc: Mauricio Silva <
>
- Subject: [chef] execute resource retries
- Date: Thu, 4 Dec 2014 18:28:20 -0800
Hello List,
The package manager from node has a little race condition problem that I
think I should be able to solve with the “Common Functionality” of a retry,
but setting this value appears to have no effect (but strangely enough,
setting the delay works)… see run fragment below:
---------------------
# In /var/chef/cache/cookbooks/thumbnail/recipes/default.rb
79: execute 'install-npm-pkgs' do
80: retries 3
81: retry_delay 4
82: command 'npm install'
83: cwd node[’service']['code_directory']
86: end
87: end
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/thumbnail/recipes/default.rb:79:in
`from_file'
execute("install-npm-pkgs") do
action "run"
retries 0
retry_delay 4
guard_interpreter :default
command "npm install"
backup 5
cwd "/var/www/thumbnail/current"
group "devops"
returns 0
user "devops"
cookbook_name "thumbnail"
recipe_name "default"
end
TIA, Michael
- [chef] execute resource retries, Michael Lindsay, 12/04/2014
Archive powered by MHonArc 2.6.16.