diff --git a/saltcloud/deploy/Debian-git.sh b/saltcloud/deploy/Debian-git.sh new file mode 100644 index 0000000000..c58b791d3b --- /dev/null +++ b/saltcloud/deploy/Debian-git.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +mkdir -p /etc/salt/pki +echo '{{ vm['priv_key'] }}' > /etc/salt/pki/minion.pem +echo '{{ vm['pub_key'] }}' > /etc/salt/pki/minion.pub +echo "{{ minion }}" > /etc/salt/minion + +# echo deb http://ftp.debian.org/debian experimental main | tee -a /etc/apt/sources.list +echo deb http://backports.debian.org/debian-backports squeeze-backports main | tee -a /etc/apt/sources.list +echo deb http://debian.madduck.net/repo squeeze-backports main | tee -a /etc/apt/sources.list +wget -q -O- "http://debian.madduck.net/repo/gpg/archive.key" | apt-key add - + +apt-get update +apt-get install -y salt-minion git-core +# minion will be started automatically by install +service salt-minion stop + +rm -rf /usr/share/pyshared/salt* +rm -rf /usr/bin/salt-* +mkdir -p /root/git +cd /root/git +git clone git://github.com/saltstack/salt.git +cd salt +python setup.py install --install-layout=deb +service salt-minion start diff --git a/saltcloud/deploy/Debian.sh b/saltcloud/deploy/Debian.sh new file mode 100644 index 0000000000..482f1238ca --- /dev/null +++ b/saltcloud/deploy/Debian.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +mkdir -p /etc/salt/pki +echo '{{ vm['priv_key'] }}' > /etc/salt/pki/minion.pem +echo '{{ vm['pub_key'] }}' > /etc/salt/pki/minion.pub +echo "{{ minion }}" > /etc/salt/minion + +# echo deb http://ftp.debian.org/debian experimental main | tee -a /etc/apt/sources.list +echo deb http://backports.debian.org/debian-backports squeeze-backports main | tee -a /etc/apt/sources.list +echo deb http://debian.madduck.net/repo squeeze-backports main | tee -a /etc/apt/sources.list +wget -q -O- "http://debian.madduck.net/repo/gpg/archive.key" | apt-key add - + +apt-get update +apt-get install -y salt-minion +# minion will be started automatically by install diff --git a/saltcloud/deploy/Ubuntu-git.sh b/saltcloud/deploy/Ubuntu-git.sh index 836092f0d7..c56089ea92 100644 --- a/saltcloud/deploy/Ubuntu-git.sh +++ b/saltcloud/deploy/Ubuntu-git.sh @@ -5,11 +5,14 @@ echo '{{ vm['priv_key'] }}' > /etc/salt/pki/minion.pem echo '{{ vm['pub_key'] }}' > /etc/salt/pki/minion.pub echo "{{ minion }}" > /etc/salt/minion +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 python-software-properties -echo | add-apt-repository ppa:saltstack/salt -apt-get update + apt-get install -y salt-minion git-core +# minion will be started automatically by install +service salt-minion stop + rm -rf /usr/share/pyshared/salt* rm -rf /usr/bin/salt-* mkdir -p /root/git diff --git a/saltcloud/deploy/Ubuntu.sh b/saltcloud/deploy/Ubuntu.sh index a28b670e13..2bacbf3fa6 100644 --- a/saltcloud/deploy/Ubuntu.sh +++ b/saltcloud/deploy/Ubuntu.sh @@ -5,9 +5,9 @@ echo '{{ vm['priv_key'] }}' > /etc/salt/pki/minion.pem echo '{{ vm['pub_key'] }}' > /etc/salt/pki/minion.pub echo "{{ minion }}" > /etc/salt/minion +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 python-software-properties -echo | add-apt-repository ppa:saltstack/salt -apt-get update + apt-get install -y salt-minion -service salt-minion start +# minion will be started automatically by install