Skip to content

Instantly share code, notes, and snippets.

@robertstarmer
Created July 29, 2013 19:07
Show Gist options
  • Save robertstarmer/6106854 to your computer and use it in GitHub Desktop.
Save robertstarmer/6106854 to your computer and use it in GitHub Desktop.
Set up a single node.
#!/bin/bash
apt-get update && apt-get dist-upgrade -y && apt-get puppet git -y
sed -e "s/127.0.1.1.*/`facter ipaddress`\t`facter fqdn`\t`facter hostname`/" -i /etc/hosts
sed -e '/logdir/ a pluginsync=true' -i /etc/puppet/puppet.conf
sed -e "/logdir/ a server=<%= puppetmaster %>" -i /etc/puppet/puppet.conf
sed -e 's/START=no/START=yes/' -i /etc/default/puppet
echo -e "server <%= puppetmaster %> iburst" > /etc/ntp.conf
echo '8021q' >> /etc/modules
echo 'kvm' >> /etc/modules
puppet agent --test --waitforcert 0 || true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment