Skip to content

Instantly share code, notes, and snippets.

@bryantrobbins
Created June 16, 2016 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryantrobbins/48d4fa36b4310961b81860693af9b07f to your computer and use it in GitHub Desktop.
Save bryantrobbins/48d4fa36b4310961b81860693af9b07f to your computer and use it in GitHub Desktop.
#!/bin/bash -v
echo "Updating packages"
yum update -y
echo "Installing yum packages"
yum install -y rubygems git puppet3
echo "Installing rubygems"
gem install r10k hiera-eyaml hiera-eyaml-kms
bash /root/init/update.sh
echo "Done with INIT."
#!/bin/bash -v
echo "Running r10k"
pushd /root/init
/usr/local/bin/r10k puppetfile install -v debug &> r10k.log
echo "Running Puppet"
puppet apply site.pp --hiera_config hiera.yaml --modulepath=modules:site --parser future &> puppet.log
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment