Skip to content

Instantly share code, notes, and snippets.

@silviud
Forked from matschaffer/bootstrap.centos.erb
Created October 19, 2013 17:47
Show Gist options
  • Save silviud/7059131 to your computer and use it in GitHub Desktop.
Save silviud/7059131 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
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment