Automated deployment of Outline, a modern knowledge base, using Terraform and Ansible.
Automated deployment of Outline, a modern knowledge base, using Terraform and Ansible.
The script currently automates deployment of Outline server on Google Cloud Platform. This script will :
ansible/group_vars/all
(Optional)You could use install-terraform.sh
and install-ansible.sh
to install Terraform and Ansible on Debian based linux distributions.
Before running the script, make sure you update values in the file vars.tf
. Alternatively, you can use a .tfvars
file.
Note:
The script by default creates cloud resources that are not covered by GCP Free Tier.
Please calculate the cost of the resources that you mention in the variables vars.tf file.
I do not claim responsibility for any cost incurred from running this script.
gcp/vars.tf
and ansible/group_vars/all
gcp
terraform init
terraform apply
To destroy all the resources the script created, run terraform destroy
.
Caution: This will destroy all resources created using this terraform script. Any data stored on the virtual machine or the database will be permanently deleted.
If you prefer deploying the application elsewhere, you could just use the Ansible Playbook.
You would have to create database manually and provide connection details as parameter extra-vars.
ansible-playbook main.yml -i hosts --extra-vars='{"db_ip_address":"127.0.0.1","db_name":"outline_db","db_password":"Passw0rd","db_username":"outline_db_user","enable_redis":true}'