Merge pull request #15 from oxyum/official_salt_for_ubuntu_lts
ubuntu: use salt packages from saltstack repos for lts releases
This commit is contained in:
commit
5e55775fdd
1 changed files with 20 additions and 1 deletions
19
debian/install-extras.sh
vendored
19
debian/install-extras.sh
vendored
|
@ -92,7 +92,26 @@ if [ $SALT = 1 ]; then
|
||||||
warn "Salt can't be installed on Ubuntu Raring 13.04, skipping"
|
warn "Salt can't be installed on Ubuntu Raring 13.04, skipping"
|
||||||
else
|
else
|
||||||
if [ $DISTRIBUTION = 'ubuntu' ]; then
|
if [ $DISTRIBUTION = 'ubuntu' ]; then
|
||||||
|
if [ $RELEASE = 'precise' ] || [ $RELEASE = 'trusty' ] || [ $RELEASE = 'xenial' ] ; then
|
||||||
|
# For LTS releases we use packages from repo.saltstack.com
|
||||||
|
if [ $RELEASE = 'precise' ]; then
|
||||||
|
SALT_SOURCE_1="deb http://repo.saltstack.com/apt/ubuntu/12.04/amd64/latest precise main"
|
||||||
|
SALT_GPG_KEY="https://repo.saltstack.com/apt/ubuntu/12.04/amd64/latest/SALTSTACK-GPG-KEY.pub"
|
||||||
|
elif [ $RELEASE = 'trusty' ]; then
|
||||||
|
SALT_SOURCE_1="deb http://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest trusty main"
|
||||||
|
SALT_GPG_KEY="https://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest/SALTSTACK-GPG-KEY.pub"
|
||||||
|
elif [ $RELEASE = 'xenial' ]; then
|
||||||
|
SALT_SOURCE_1="deb http://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest xenial main"
|
||||||
|
SALT_GPG_KEY="https://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest/SALTSTACK-GPG-KEY.pub"
|
||||||
|
fi
|
||||||
|
echo $SALT_SOURCE_1 > ${ROOTFS}/etc/apt/sources.list.d/saltstack.list
|
||||||
|
|
||||||
|
utils.lxc.attach wget -q -O /tmp/salt.key $SALT_GPG_KEY
|
||||||
|
utils.lxc.attach apt-key add /tmp/salt.key
|
||||||
|
elif [ $RELEASE = 'quantal' ] || [ $RELEASE = 'saucy' ] ; then
|
||||||
utils.lxc.attach add-apt-repository -y ppa:saltstack/salt
|
utils.lxc.attach add-apt-repository -y ppa:saltstack/salt
|
||||||
|
fi
|
||||||
|
# For Utopic, Vivid and Wily releases use system packages
|
||||||
else # DEBIAN
|
else # DEBIAN
|
||||||
if [ $RELEASE == "squeeze" ]; then
|
if [ $RELEASE == "squeeze" ]; then
|
||||||
SALT_SOURCE_1="deb http://debian.saltstack.com/debian squeeze-saltstack main"
|
SALT_SOURCE_1="deb http://debian.saltstack.com/debian squeeze-saltstack main"
|
||||||
|
|
Loading…
Reference in a new issue