Skip to content

Instantly share code, notes, and snippets.

@markedagain
Created April 17, 2013 15:02
Show Gist options
  • Save markedagain/5405027 to your computer and use it in GitHub Desktop.
Save markedagain/5405027 to your computer and use it in GitHub Desktop.
ubuntu install latest agent on clone device
#sed -i "s/old_host_name/new_host_name/g" /etc/hosts
#sed -i "s/old_host_name/new_host_name/g" /etc/hostname
#hostname new_host_name
#reboot now #for changes to take affect
#
grep puppet /etc/hosts; [ $? -eq 1 ] && echo "192.168.1.128 puppet" >> /etc/hosts
#ping puppet #test
#
apt-get update
apt-get dist-upgrade -y
wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb
dpkg -i puppetlabs-release-precise.deb
apt-get update -y
apt-get install puppet -y
rm puppetlabs-release-precise.deb
puppet help
#puppet agent --test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment