-
-
Save jtimberman/1129051 to your computer and use it in GitHub Desktop.
centos 5.5 bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash -c ' | |
<%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%> | |
if [ ! -f /usr/bin/chef-client ]; then | |
wget <%= "--proxy=on " if knife_config[:bootstrap_proxy] %>http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm | |
rpm -Uvh epel-release-5-4.noarch.rpm | |
wget <%= "--proxy=on " if knife_config[:bootstrap_proxy] %>-O /etc/yum.repos.d/aegisco-testing.repo http://testing.aegisco.com/el5/aegisco-testing.repo | |
yum install -y rubygems rubygem-chef | |
ln -s /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/chef-client /usr/bin | |
ln -s /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/chef-solo /usr/bin | |
ln -s /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/knife /usr/bin | |
ln -s /usr/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/shef /usr/bin | |
fi | |
mkdir -p /etc/chef | |
( | |
cat <<'EOP' | |
<%= validation_key %> | |
EOP | |
) > /tmp/validation.pem | |
awk NF /tmp/validation.pem > /etc/chef/validation.pem | |
rm /tmp/validation.pem | |
( | |
cat <<'EOP' | |
<%= config_content %> | |
EOP | |
) > /etc/chef/client.rb | |
( | |
cat <<'EOP' | |
<%= { "run_list" => @run_list }.to_json %> | |
EOP | |
) > /etc/chef/first-boot.json | |
<%= start_chef %>' |
I did not. I often fork gists to remember them, but I forgot about this one :).
No problem, just making sure. I'll be doing a bunch of work this weekend as
a result of both RBEL and ELFF going down this week. I've been on vacation,
but my goal going forward is to host all of these resources myself, and to
rebuild most/all of the packages, update docs, release the rpmbuild cookbook
I wrote, and generally tighten everything up.
I didn't realize how many people were using these packages. Definitely need
to not have downtime like that again; especially frustrating when I have no
control to fix it.
James
…On Thu, Oct 6, 2011 at 8:37 AM, Joshua Timberman < ***@***.***>wrote:
I did not. I often fork gists to remember them, but I forgot about this one
:).
##
Reply to this email directly or view it on GitHub:
https://gist.github.com/1129051
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you make any changes to this?