Commit edf256fd authored by Rafael Monnerat's avatar Rafael Monnerat

Reorganise repos and include installation script

parent a6ed496b
This diff is collapsed.
#!/bin/bash
wget --no-check-certificates https://lab.nexedi.cn/rafael/slapos.playbook/raw/master/install/function-common -O /tmp/function-common
source /tmp/function-common
# Determine what system we are running on. This provides ``os_VENDOR``,
# ``os_RELEASE``, ``os_UPDATE``, ``os_PACKAGE``, ``os_CODENAME``
# and ``DISTRO``
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) ]]; 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
is_package_installed ansible || install_package ansible
rm -rf /tmp/playbook.tar.gz /tmp/slapos.playbook.git
wget https://lab.nexedi.cn/rafael/slapos.playbook/repository/archive.tar.gz?ref=master -O /tmp/playbook.tar.gz
cd /tmp && tar -xzvf playbook.tar.gz
cd /tmp/slapos.playbook.git/slapos
ansible -c local all
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