Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Martin Ivanov d9e9c7161b Replace key_path with private_key and file() interpolation. 8 years ago
..
README.md Add Terraform config for Google Cloud Platform 9 years ago
consul.tf Replace key_path with private_key and file() interpolation. 8 years ago
outputs.tf Add Terraform config for Google Cloud Platform 9 years ago
variables.tf Add Terraform config for Google Cloud Platform 9 years ago

README.md

Running the Google Cloud Platform templates to set up a Consul cluster

The platform variable defines the target OS, default is ubuntu.

Supported Machine Images:

  • Ubuntu 14.04 (ubuntu)
  • RHEL6 (rhel6)
  • RHEL7 (rhel7)
  • CentOS6 (centos6)
  • CentOS7 (centos7)

For Google Cloud provider, set up your environment as outlined here: https://www.terraform.io/docs/providers/google/index.html

To set up a Ubuntu based cluster, replace key_path with actual value and run:

terraform apply -var 'key_path=/Users/xyz/consul.pem'

or

terraform apply -var 'key_path=/Users/xyz/consul.pem' -var 'platform=ubuntu'

To run RHEL6, run like below:

terraform apply -var 'key_path=/Users/xyz/consul.pem' -var 'platform=rhel6'

Note: For RHEL and CentOS based clusters, you need to have a SSH key added for the user root.