Skip to content

Instantly share code, notes, and snippets.

@tvaughan
Created May 28, 2012 01:04
Show Gist options
  • Save tvaughan/2816609 to your computer and use it in GitHub Desktop.
Save tvaughan/2816609 to your computer and use it in GitHub Desktop.
#!/bin/sh -e
# http://www.linode.com/stackscripts/view/?StackScriptID=5640
dpkg-reconfigure tzdata
vi /etc/hostname /etc/hosts
vi /etc/default/dhcpcd # (maybe)
service hostname restart
apt-get -y install --no-install-recommends git
apt-get -y clean
cd /opt
mkdir ubuntu-setup
cd ubuntu-setup
git clone git://github.com/rentalita/ubuntu-setup.git git-repo
ln -s git-repo master
ln -s $(pwd)/master/salt /srv/salt
ln -s $(pwd)/master/pillar /srv/pillar
# on minion:
# set "master" to "appropriate hostname" in /etc/salt/minion
# service salt-minion restart
# on master:
# salt-key -A (danger!!!)
# service salt-master restart
# passwd -dl root
# dpkg-reconfigure gitolite
# openssl passwd -1 T0pS3cR3t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment