This project contain terraform script and ansible playbooks for deploy owncloud on GCE
- google cloud engine account
- created project
- installed gcloud && terraform
terraform init
in theterraform
directory
- go to
terraform
directory - create your own terraform.tfvars based on terraform.tfvars.example
- run
terraform apply
- google compute instance will be created
- google static IP (premium) will be created
- google vompute firewall rules will be created (80, 443 and 22 tcp)
- ansible environment
- terraform-inventory (https://github.com/adammck/terraform-inventory)
- go to
ansible
directory - create your own vars.yml based on vars.yml.example
- run
ansible-playbook playbooks/infra.yml
- run
ansible-playbook playbooks/deploy.yml
- docker and docker-compose will be installed on the host instance
- owncloud will be installed
- nginx as a proxy will be installed
- create A type of DNS record
- ensure that you can see you instance by
ping example.org
- go to the host using command:
ssh [email protected] -i ~/.ssh/username
(You must use ssh_user_name from terraform/terraform.tfvars) - execute initial script for lets encrypt:
./init-letsencrypt.sh
- remove constant from ansible/roles/docker/tasks/config_docker.yml (name: username)
Used resource or/and projects: