github.com/clly/consul@v1.4.5/terraform/google/README.md (about)

     1  ## Running the Google Cloud Platform templates to set up a Consul cluster
     2  
     3  The platform variable defines the target OS, default is `ubuntu`.
     4  
     5  Supported Machine Images:
     6  - Ubuntu 14.04 (`ubuntu`)
     7  - RHEL6 (`rhel6`)
     8  - RHEL7 (`rhel7`)
     9  - CentOS6 (`centos6`)
    10  - CentOS7 (`centos7`)
    11  
    12  For Google Cloud provider, set up your environment as outlined here: https://www.terraform.io/docs/providers/google/index.html
    13  
    14  To set up a Ubuntu based cluster, replace `key_path` with actual value and run:
    15  
    16  
    17  ```shell
    18  terraform apply -var 'key_path=/Users/xyz/consul.pem'
    19  ```
    20  
    21  _or_
    22  
    23  ```shell
    24  terraform apply -var 'key_path=/Users/xyz/consul.pem' -var 'platform=ubuntu'
    25  ```
    26  
    27  To run RHEL6, run like below:
    28  
    29  ```shell
    30  terraform apply -var 'key_path=/Users/xyz/consul.pem' -var 'platform=rhel6'
    31  ```
    32  
    33  **Note:** For RHEL and CentOS based clusters, you need to have a [SSH key added](https://console.cloud.google.com/compute/metadata/sshKeys) for the user `root`.