Skip to content

Instantly share code, notes, and snippets.

@matschaffer
Created April 17, 2012 00:01
Show Gist options
  • Save matschaffer/2402433 to your computer and use it in GitHub Desktop.
Save matschaffer/2402433 to your computer and use it in GitHub Desktop.
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
'
@bby-bishopclark
Copy link

@srininara - are you still seeing an old chef version? Specifying the right repo URL could help it choose something newer: http://packages.chef.io/repos/yum/stable/el/7/x86_64/ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment