Commit 0e3c5ace authored by Rafael Monnerat's avatar Rafael Monnerat

Make sure backports are available to debian7

parent 49eb9bab
......@@ -5,7 +5,7 @@ PLAYBOOK_FILE={{ playbook_yml }}
#### Setup Ansible and load few libraries #####
BASE_SETUP_SCRIPT_MD5=836e9256decdf8e2cd49d388fa7851ab
BASE_SETUP_SCRIPT_MD5=dd8a4d4f8dbb2becc16e814f65ed6df5
wget --no-check-certificate https://deploy.nexedi.cn/base-setup -O /tmp/base-setup
......
......@@ -30,13 +30,18 @@ GetDistro
# Warn users who aren't on an explicitly supported distro, but allow them to
# override check and attempt installation with ``export FORCE=yes``
if [[ ! ${DISTRO} =~ (wheezy|trusty|rhel7) ]]; then
if [[ ! ${DISTRO} =~ (wheezy|jessie|trusty|rhel7) ]]; then
echo "WARNING: this script has not been tested on $DISTRO"
if [[ "$FORCE" != "yes" ]]; then
die $LINENO "If you wish to run this script anyway run with FORCE=yes"
fi
fi
# Make sure wheezy backports are available.
if [[ $DISTRO == "wheezy" ]]; then
echo "deb http://ftp.debian.org/debian wheezy-backports main contrib " > /etc/apt/sources.list.d/wheezy-backports
fi
if is_fedora && [[ $DISTRO == "rhel7" ]]; then
# RHEL requires EPEL for many Open Stack dependencies
......
#!/bin/bash
PLAYBOOK_REPOSITORY_URL=https://lab.nexedi.cn/rafael/slapos.playbook
PLAYBOOK_REPOSITORY_URL=https://lab.nexedi.cn/rafael/slapos.playbook.git
#### Setup Ansible and load few libraries #####
BASE_SETUP_SCRIPT_MD5=836e9256decdf8e2cd49d388fa7851ab
BASE_SETUP_SCRIPT_MD5=dd8a4d4f8dbb2becc16e814f65ed6df5
wget --no-check-certificate https://deploy.nexedi.cn/base-setup -O /tmp/base-setup
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment