Skip to content

mint-vernetzt/community-platform-infrastructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Community Platform Infrastructure

Prerequisite

Terraform

Install Instructions

Ansible

Install Instructions (using pip)

Instructions

  • create terraform/terraform.tfvars (from terraform/terraform.tfvars.dist) and set API Token
  • create ansible/vars/main.yml (from ansible/vars/main.yml.dist) and set API Token, email for Let's Encrypt, network name for docker and domain
  • create ansible/inventory/digitaloceanmain.yml (from ansible/inventory/digitalocean.yml.dist) and set API Token
  • add applications .env to ansible/playbooks/roles/community/files/

IMPORTANT: if infrastructure still exist get terraform.tfstate from the machine previously applied the terraform configuration and paste it to the terraform/ folder

Commands

Terraform

terraform apply - Create infrastructure or apply changes

Ansible

ansible-playbook -i inventory/digitalocean.yml playbooks/site.yml -u root - Run playbooks on hosts

About

Infrastructure Setup of community platform

Resources

Stars

Watchers

Forks

Packages

No packages published