Created
May 28, 2012 01:04
-
-
Save tvaughan/2816609 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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