Server provisioning
This document will guide you on installing all server-side components: Sun, Wings, Wax.
Provisioning scripts will use latest Icaro release.
Getting the code
Clone the git repository:
git clone https://github.com/nethesis/icaro.git
Then enter the provisioning directory:
cd deploy
Provisioning with Vagrant and Ansible
This procedure uses Vagrant to provision a Digital Ocean (DO) droplet.
If you prefere to use another cloud provider, edit Vagrantfile accordingly.
-
Install Vagrant along with Digital Ocean plugin.
On Fedora 27:
dnf install vagrant-digitaloceanOn Ubuntu 17.10
apt-get install vagrant-digitalocean -
Install ansible (>= 2.4)
On Fedora 27:
sudo dnf install ansibleOn Ubuntu 17.10:
sudo apt-get install python-pip pip install ansibleadd
$HOME/.local/bin/to your$PATH. -
Replace
YOUR TOKENwith your DO token inside theVagrantfile -
Make sure to upload an SSH key to yuor DO account, then replace
YOUR KEY NAMEwith you SSH key name inside theVagrantfile -
Modify
deploy/ansible/group_vars/all.ymlfile by replacing all variables. Make sure to customize at leasticaro.hostname. Seticaro.tls: "auto"if you want https certicate provisioned by Let’s Encrypt. -
Create the
Icarodroplet:vagrant up --provider=digital_ocean
You can destroy the droplet using:
vagrant destroy
The machine can be rebuilt using (all data will be lost):
vagrant rebuild