chef attribute will not get over ridden
<p>I am running a recipe that depends on multiple recipes, one of which tries to clone a github repo and gives the url as an attribute in its cookbook in attributes/fair.rb (<a href="https://github.com/priestjim/chef-openresty/blob/master/attributes/fair.rb" rel="nofollow">https://github.com/priestjim/chef-openresty/blob/master/attributes/fair.rb</a>) : </p>

<pre><code># For more information checkout https://github.com/gnosek/nginx-upstream-fair
default['openresty']['fair']['url']             = 'git://github.com/gnosek/nginx-upstream-fair.git'
</code></pre>

<p>I need to over ride this attribute to give the https endpoint in stead of SSH so in my cookbook , I create attributes/fair.rb and put down:</p>

<pre><code>override['openresty']['fair']['url'] = 'https://github.com/gnosek/nginx-upstream-fair.git'
</code></pre>

<p>but when I run chef solo using vagrant, it fails with following:</p>

<pre><code>Mixlib::ShellOut::ShellCommandFailed
==&gt; default:     ------------------------------------
==&gt; default:     Expected process to exit with [0], but received '128'
==&gt; default:     ---- Begin output of git ls-remote "git://github.com/gnosek/nginx-upstream-fair.git" "master*" ----
==&gt; default:     STDOUT: 
==&gt; default:     STDERR: fatal: unable to connect to github.com:
==&gt; default:     github.com[0: 192.30.252.131]: errno=Connection timed out
==&gt; default:     ---- End output of git ls-remote "git://github.com/gnosek/nginx-upstream-fair.git" "master*" ----
==&gt; default:     Ran git ls-remote "git://github.com/gnosek/nginx-upstream-fair.git" "master*" returned 128
==&gt; default:     
==&gt; default:     Resource Declaration:
==&gt; default:     ---------------------
==&gt; default:     # In /tmp/vagrant-chef/97b7f5ef6e972aa934bfb7ea6a5db3bb/cookbooks/openresty/recipes/fair_module.rb
==&gt; default:     
==&gt; default:      26: git module_path do
==&gt; default:      27:   repository node['openresty']['fair']['url']
==&gt; default:      28:   reference 'master'
==&gt; default:      29:   action :checkout
==&gt; default:      30:   not_if { ::File.exists?(module_path) }
==&gt; default:      31: end
==&gt; default:      32: 
==&gt; default:     
==&gt; default:     Compiled Resource:
==&gt; default:     ------------------
==&gt; default:     # Declared in /tmp/vagrant-chef/97b7f5ef6e972aa934bfb7ea6a5db3bb/cookbooks/openresty/recipes/fair_module.rb:26:in `from_file'
==&gt; default:     
==&gt; default:     git("/var/chef/cache/nginx-upstream-fair") do
==&gt; default:       action [:checkout]
==&gt; default:       retries 0
==&gt; default:       retry_delay 2
==&gt; default:       default_guard_interpreter :default
==&gt; default:       destination "/var/chef/cache/nginx-upstream-fair"
==&gt; default:       enable_checkout true
==&gt; default:       revision "master"
==&gt; default:       remote "origin"
==&gt; default:       checkout_branch "deploy"
==&gt; default:       declared_type :git
==&gt; default:       cookbook_name :openresty
==&gt; default:       recipe_name "fair_module"
==&gt; default:       repository "git://github.com/gnosek/nginx-upstream-fair.git"
==&gt; default:       not_if { #code block }
==&gt; default:     end



Ran git ls-remote "git://github.com/gnosek/nginx-upstream-fair.git" "master*" returned 128
==&gt; default: [2016-02-23T01:03:00+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
</code></pre>

<p>as you can see still takes the ssh endpoint for some reason. Any idea why ?</p>