github.hscsec.cn/hashicorp/consul@v1.4.5/terraform/openstack/README.org (about)

     1  #+AUTHOR:  parasitid@yahoo.fr
     2  #+TITLE:   Terraforming consul on Openstack
     3  
     4  * 1. Pre-requisites
     5    - Populate all variables in your terraform.tfvars
     6      #+BEGIN_SRC terraform
     7      username = "..."
     8      password = "..."
     9      tenant_name = "..."
    10      auth_url = "https://myopenstackprovider.com/identity/v2.0"
    11      public_key = "ssh-rsa AAAAB..."
    12      key_file_path = "..."
    13      #+END_SRC
    14    - Change regions, networks, flavor and image ids in the variables.tf
    15      according to your openstack settings
    16    - Use an "upstart" compatible image for your consul nodes
    17  
    18  * 2. Test it
    19  
    20    : terraform apply
    21  
    22  * 3. Terraform as a module
    23  
    24    You should now be able to use openstack as a provider for the consul module.
    25    #+BEGIN_SRC terraform
    26    module "consul" {
    27      source = "github.com/hashicorp/consul/terraform/openstack"
    28      servers = 3
    29    }
    30    #+END_SRC