Commit 4a25abd3 authored by Rafael Monnerat's avatar Rafael Monnerat

Clean up installation script.

parent edf256fd
#!/bin/bash
wget --no-check-certificates https://lab.nexedi.cn/rafael/slapos.playbook/raw/master/install/function-common -O /tmp/function-common
PLAYBOOK_REPOSITORY_URL=https://lab.nexedi.cn/rafael/slapos.playbook/repository/archive.tar.gz?ref=master
PLAYBOOK_BASE_FOLDER=slapos.playbook.git
PLAYBOOK_RELATIVE_URL=$PLAYBOOK_BASE_FOLDER/playbook/slapos
PLAYBOOK_FILENAME=slapos.playbook.git.master.tar.gz
wget --no-check-certificate https://lab.nexedi.cn/rafael/slapos.playbook/raw/master/install/function-common -O /tmp/function-common
source /tmp/function-common
......@@ -21,12 +26,12 @@ fi
is_package_installed ansible || install_package ansible
rm -rf /tmp/playbook.tar.gz /tmp/slapos.playbook.git
rm -rf /tmp/$PLAYBOOK_FILENAME /tmp/$PLAYBOOK_BASE_FOLDER
wget https://lab.nexedi.cn/rafael/slapos.playbook/repository/archive.tar.gz?ref=master -O /tmp/playbook.tar.gz
wget $PLAYBOOK_REPOSITORY_URL -O /tmp/$PLAYBOOK_FILENAME
cd /tmp && tar -xzvf playbook.tar.gz
cd /tmp && tar -xzvf $PLAYBOOK_FILENAME
cd /tmp/slapos.playbook.git/slapos
cd /tmp/$PLAYBOOK_RELATIVE_URL
ansible -c local all
ansible-playbook site.yml -i hosts --connection=local
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