]> git.madduck.net Git - code/vinst.git/blobdiff - preseed/wheezy/commands/late_commands.d/install_salt_backport

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

change to stretch suite
[code/vinst.git] / preseed / wheezy / commands / late_commands.d / install_salt_backport
diff --git a/preseed/wheezy/commands/late_commands.d/install_salt_backport b/preseed/wheezy/commands/late_commands.d/install_salt_backport
deleted file mode 100755 (executable)
index 050d23c..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-
-TMPLIST=/etc/apt/sources.list.d/tmp-backports.list
-
-echo "Temporarily enabling backports"
-sed -ne 's/-updates/-backports/p' /etc/apt/sources.list > $TMPLIST
-
-SUITE=$(tail -1 $TMPLIST | cut -d' ' -f3)
-SUITE=${SUITE%-*}
-
-cat <<_eof >> $TMPLIST
-deb http://debian.saltstack.com/debian ${SUITE}-saltstack main
-_eof
-
-cd /tmp
-wget -O salt.gpg http://debian.saltstack.com/debian-salt-team-joehealy.gpg.key
-echo "145157dfb896f7a0c1f390c6f72e6d092fbbfaf4374b510d4c7828c4177ab476  salt.gpg" | sha256sum -c || exit 1
-apt-key --keyring /etc/apt/trusted.gpg.d/salt.gpg add salt.gpg && rm salt.gpg
-
-apt-get update
-
-rm -f /etc/apt/trusted.gpg.d/salt.gpg
-
-TMPCONF=/etc/default/salt-minion
-
-echo "exit 0" > $TMPCONF
-
-echo "Installing Salt minion (possibly from $SUITE-backports and $SUITE-saltstack)"
-export DEBCONF_FRONTEND=noninteractive
-apt-get install --no-install-recommends -t $SUITE-saltstack -y salt-minion
-
-echo "pki_dir: /var/lib/salt/minion/pki" > /etc/salt/minion.d/tmp-pki-in-varlib.conf
-
-rm -f $TMPLIST $TMPCONF