install_unstable.j2 631 Bytes
Newer Older
1 2 3 4
#!/bin/bash

set -e

5 6 7 8
#
#  Paste content of function-common
#    https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
9 10


11
{{ lookup('file', base_path+'/install/base-setup') }}
12 13


14 15 16 17
# Include Additional Functions
if [ ! -f /etc/opt/slapcache.cfg ]; then
  slapcache-conf
fi
18 19
sed -i "s/key = slapos-global-key/key = slapos-global-unstable-key/g" /etc/opt/slapcache.cfg 

20 21 22 23 24 25 26 27
DFILE="/tmp/tmpplaybook_unstable$(basename $0).$$/"
TFILE="archive.tar.gz"
mkdir -p $DFILE
cd $DFILE
slapcache-download --destination=$TFILE
tar -xzvf $TFILE
rm $TFILE

28 29 30 31
clear

echo "Starting Ansible playbook:"