Skip to content

Instantly share code, notes, and snippets.

@basepi
Created February 14, 2013 23:34
Show Gist options
  • Save basepi/4957376 to your computer and use it in GitHub Desktop.
Save basepi/4957376 to your computer and use it in GitHub Desktop.
Linode StackScript for salted ubuntu
#!/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