With Ansible, Terraform, Tigervnc and Guacamole.
To use Ansible as provider in Terraform, you need the Ansible provider here
Copy the downloaded binary to ~/.terraform.d/plugins/
.
-
You MUST have access to ONE cloud instances provider and ONE cloud DNS records provider amongst the following.
-
You MUST retrieve the API tokens for each provider, pleaser refer to their documentations by following the links below.
You MUST add SSH keys to your cloud provider account.
Required informations
- Scaleway
- scaleway_api_access_key
- scaleway_api_secret_key
- scaleway_orga_id
- Hertner
- hcloud_guacamole_server_type
- hcloud_token
- hcloud_vnc_server_type
You MUST have a domain recorded in your cloud DNS provider account.
Required informations
- formation_subdomain : the name of your session, any string works
- global_lab_domain : a domain configured available in your provider account
- OVH
- ovh_application_key
- ovh_application_secret
- ovh_consumer_key
- Digital Ocean
- digitalocean_token
$ cp terraform/secrets.auto.tfvars.dist terraform/secrets.auto.tfvars
Edit the file to add your tokens and other required informations
./cloud_cli.sh setup_full
You will be asked to select the providers you want to use.
With Ansible installed and an inventory configured:
ansible-playbook -i $INVENTORY_PATH site.yml