tintoy / do-docker

Docker on DigitalOcean using Terraform and Ansible (as simple as possible).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker on DigitalOcean with Terraform and Ansible

Create a file called credentials.tf in the same folder as main.tf, with the following contents:

variable "digitalocean_token" {
    default = "Your_DigitalOcean_API_Token"
}

Then run:

  • terraform apply
  • ansible all -m ping
  • Exactly 1 of:
    • ./install-docker.bash
    • OR:
    • ansible-playbook ./playbooks/docker.yml
  • Have a play.
  • terraform destroy

About

Docker on DigitalOcean using Terraform and Ansible (as simple as possible).

License:MIT License


Languages

Language:Python 94.3%Language:HCL 3.7%Language:Shell 2.0%