Skip to content

Commit

Permalink
Move bootstrap script to an public repo
Browse files Browse the repository at this point in the history
  • Loading branch information
simpsonjulian committed Oct 5, 2010
1 parent 66867c2 commit 095e4f8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
# to use:
# curl http://github.com/puppetlabs/puppetlabs-bootstrap/raw/master/bootstrap.sh | bash
rpm -ql zsh > /dev/null || yum install -y zsh
mkdir -p /opt/puppetlabs
cd /opt/puppetlabs
[ -d /opt/puppetlabs/puppetlabs-bootstrap ] || git clone git://github.com/puppetlabs/puppetlabs-bootstrap.git

echo ${PATH} | grep -q puppetlabs-bootstrap || export PATH=/opt/puppetlabs/puppetlabs-bootstrap/bin:$PATH

for command in pb_init_00_epel pb_init_10_ruby pb_init_11_git pb_init_50_puppet pb_init_51_facter pb_setup_11_selinuxoff pb_setup_20_mock ; do
echo "Running ${command}"
eval ${command} || exit 1
done

exit 0
# these might break aws
#pb_init_20_sshauthorizedkeys
#pb_init_30_puppetusergroup
#pb_init_40_account
#pb_init_41_sudo
#pb_runmanifest
#pb_update
#puppet-bootstrap

0 comments on commit 095e4f8

Please sign in to comment.