Created
February 14, 2013 23:34
-
-
Save basepi/4957376 to your computer and use it in GitHub Desktop.
Linode StackScript for salted ubuntu
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/bash | |
SSHKEYURL=http://files.basepi.net/ssh_keys/cmyers-alice.pub | |
mkdir /root/.ssh/ | |
touch /root/.ssh/authorized_keys | |
wget $SSHKEYURL --output-document=/tmp/cmyers-ssh.pub | |
cat /tmp/cmyers-ssh.pub >> /root/.ssh/authorized_keys | |
apt-get update | |
apt-get upgrade -y | |
echo deb http://ppa.launchpad.net/saltstack/salt/ubuntu `lsb_release -sc` main | tee /etc/apt/sources.list.d/saltstack.list | |
wget -q -O- "http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x4759FA960E27C0A6" | apt-key add - | |
apt-get update | |
apt-get install -y salt-minion salt-master salt-syndic | |
apt-get install -y zsh python python3 git | |
apt-get install -y vim | |
cd /root | |
git clone git://github.com/basepi/dotfiles | |
cd dotfiles | |
git submodule init | |
git submodule update | |
./install.py -y | |
chsh -s /bin/zsh root | |
cd / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment