Commit ecf670c9 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_web_deploy: Initial Release of Deploy

This contains the code moved from slapos.package/playbook/role/install-script to provide installation scripts.
parent 6876d288
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
#### Setup Ansible and load few libraries #####
PLAYBOOK_REPOSITORY_URL=https://lab.nexedi.com/nexedi/slapos.package.git
is_package_installed git || install_package git
git clone $PLAYBOOK_REPOSITORY_URL
\ No newline at end of file
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
${slapos_install_content}
clear
echo "Starting Ansible playbook:"
ansible-playbook erp5-standalone.yml -i hosts --connection=local
\ No newline at end of file
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
${slapos_install_content}
clear
echo "Starting Ansible playbook:"
ansible-playbook gnet-re6stnet.yml -i hosts --connection=local
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
${slapos_install_content}
clear
echo "Starting Ansible playbook:"
ansible-playbook gnet-server.yml -i hosts --connection=local
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
${slapos_install_content}
clear
echo "Starting Ansible playbook:"
ansible-playbook gnet-upgrader-install.yml -i hosts --connection=local
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
${slapos_unstable_content}
clear
echo "Starting Ansible playbook:"
ansible-playbook imt-vm-bootstrap.yml -i hosts --connection=local
#!/bin/bash
# Configure network interface
rm -rf /tmp/dropcmd
wget -O /etc/opt/netconfigure http://10.0.2.100/netconfig.sh
wget -O /tmp/dropcmd -q http://10.0.2.100/delDefaultIface
if [[ -s "/tmp/dropcmd" ]]
then
echo "nameserver 8.8.8.8" > /etc/resolv.conf
/sbin/ip route del default
fi
bash /etc/opt/netconfigure
set -e
### Include Bootstrap VM script
### Contain function-common
## https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
${function_common_content}
${base_setup_content}
download_playbook
clear
echo "Starting Ansible playbook:"
ansible-playbook imt-vm-bootstrap.yml -i hosts --connection=local
# Check if playbook has been correctly extracted
ANSIBLE_CRON_FILE="/etc/cron.d/ansible-vm-bootstrap"
COUNT=$(ls /opt/slapos.playbook | wc -l)
if [[ ! $COUNT -gt 1 ]]
then
rm -f $ANSIBLE_CRON_FILE
rm -f /opt/slapos.playbook/playbook.tar.gz
exit 1
fi
# check if Ansible cron task was added
if [[ ! -s "$ANSIBLE_CRON_FILE" ]]
then
exit 1
fi
exit 0
\ No newline at end of file
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
download_playbook
clear
echo "Starting Ansible playbook:"
ansible-playbook imt-re6stnet.yml -i hosts --connection=local
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
download_playbook
clear
echo "Starting Ansible playbook:"
ansible-playbook imt-server.yml -i hosts --connection=local
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
download_playbook
clear
echo "Starting Ansible playbook:"
ansible-playbook imt-server-update.yml -i hosts --connection=local
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
download_playbook
clear
echo "Starting Ansible playbook:"
ansible-playbook imt-vm-bootstrap.yml -i hosts --connection=local
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
download_playbook
clear
echo "Starting Ansible playbook:"
ansible-playbook imt-vm-cloudera-manager.yml -i hosts --connection=local
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
${slapos_install_content}
clear
echo "Starting Ansible playbook:"
ansible-playbook re6stnet.yml -i hosts --connection=local
\ No newline at end of file
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
${slapos_install_content}
clear
echo "Starting Ansible playbook:"
ansible-playbook slapos.yml -i hosts --connection=local
\ No newline at end of file
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
${slapos_install_content}
clear
echo "Starting Ansible playbook:"
ansible-playbook slapos-master-standalone.yml -i hosts --connection=local
\ No newline at end of file
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
${slapos_install_content}
clear
echo "Starting Ansible playbook:"
ansible-playbook slapos-test-node.yml -i hosts --connection=local
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
${slapos_install_content}
clear
echo "Starting Ansible playbook:"
ansible-playbook test-suite.yml -i hosts --connection=local
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
${slapos_testing_content}
clear
echo "Starting Ansible playbook:"
ansible-playbook erp5-standalone.yml -i hosts --connection=local
\ No newline at end of file
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
${slapos_testing_content}
clear
echo "Starting Ansible playbook:"
ansible-playbook gnet-re6stnet.yml -i hosts --connection=local
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
${slapos_testing_content}
clear
echo "Starting Ansible playbook:"
ansible-playbook gnet-server.yml -i hosts --connection=local
#!/bin/bash
set -e
#
# Paste content of function-common
# https://lab.nexedi.com/nexedi/slapos.package/blob/master/playbook/roles/install-script/files/function-common
#
${function_common_content}
${base_setup_content}
${slapos_testing_content}
clear
echo "Starting Ansible playbook:"
ansible-playbook re6stnet.yml -i hosts --connection=local
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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