public
Last active

  • Download Gist
bootstrap.centos.erb
HTML+ERB
1 2 3 4 5 6 7 8 9
bash -c '
<%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%>
 
yum install -y wget
wget <%= "--proxy=on " if knife_config[:bootstrap_proxy] %>http://rbel.co/rbel5
rpm -Uvh rbel5
 
yum install -y rubygem-chef
'

I am trying to use this for the prepare step. Only catch is that yum installs an older version of chef (0.10.6). I am not able to find a way yet to overcome this. Any suggestions would be of great help.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.