open-consul/terraform/openstack
Evan Farrell d053a09981 terraform: fix formatting of consul.tf (#4580) 2018-10-24 08:02:38 -07:00
..
scripts Update install.sh 2016-05-04 18:01:47 +02:00
README.org Update README.org 2017-01-27 18:19:47 +01:00
consul.tf terraform: fix formatting of consul.tf (#4580) 2018-10-24 08:02:38 -07:00
outputs.tf Adds terraform openstack provider support 2015-04-08 15:16:05 +02:00
variables.tf terraform: fix formatting of consul.tf (#4580) 2018-10-24 08:02:38 -07:00

README.org

Terraforming consul on Openstack

1. Pre-requisites

  • Populate all variables in your terraform.tfvars

    username = "..."
    password = "..."
    tenant_name = "..."
    auth_url = "https://myopenstackprovider.com/identity/v2.0"
    public_key = "ssh-rsa AAAAB..."
    key_file_path = "..."
  • Change regions, networks, flavor and image ids in the variables.tf according to your openstack settings
  • Use an "upstart" compatible image for your consul nodes

2. Test it

terraform apply

3. Terraform as a module

You should now be able to use openstack as a provider for the consul module.

module "consul" {
  source = "github.com/hashicorp/consul/terraform/openstack"
  servers = 3
}