vagrant - chef-solo nginx recipe not picking up on my attributes -


the gist of problem located here:

https://gist.github.com/tsabat/a8f27ae6ac7d1fd3b6f7

the high-level problem chef-solo not seem pick on attributes set in attriutes/default.rb file recipe.

i switched chef 11 10 , think breaking changes have me on barrel.

please help.

you need override additional variables: prefix, url, sbin_path , default_configure_flags:

set['nginx']['version'] = "1.5.3" set['nginx']['source']['version'] = "1.5.3" # chef checksum of binary determined by: shasum -a 256 file_name set['nginx']['source']['checksum'] = "edcdf2030750b4eb1ba8cd79365c16a3e33e6136b7fdd8a1a7b4082397f4e92b" set['nginx']['source']['prefix'] = "/opt/nginx-#{node['nginx']['source']['version']}" set['nginx']['source']['url'] = "http://nginx.org/download/nginx-#{node['nginx']['source']['version']}.tar.gz" set['nginx']['source']['sbin_path'] = "#{node['nginx']['source']['prefix']}/sbin/nginx"  set['nginx']['source']['default_configure_flags'] = [   "--prefix=#{node['nginx']['source']['prefix']}",   "--conf-path=#{node['nginx']['dir']}/nginx.conf",   "--sbin-path=#{node['nginx']['source']['sbin_path']}" ] 

this because these variables embed other variables, , set using values have not yet been overriden values.

by specifying these additional variables in wrapper cookbook, ensure using updated values expect.

also, because default values set in nginx cookbook, it's better use set (an alias normal) more accurately describes doing , has higher attribute precedence.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -