Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sveronneau committed Feb 14, 2018
1 parent 7cd3802 commit 2271701
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
27 changes: 1 addition & 26 deletions consul/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,4 @@
# gcp/consul
Terraform and Ansible script to deploy Consul 1.0.6 within a GCP instance.

Requirements: GCP project and Project wide SSH Key

**STEPS**

If you are running Terraform inside a GCP instance running from a supported image, go to step 2

**Step 1 - Create service account in your GCP project**
* IAM & admin / Service accounts / Create Service Account
- Roles: Compute Instance Admin (v1) / Service Account User / Storage Object Admin
- Options / Create key / Download JSON file

**Step 2 - Download and Install Terraform**
* https://www.terraform.io/downloads.html

**Step 3 - Clone repo and adapt code**
* Clone GitHub Repo - https://github.com/sveronneau/gcp
* Adapt gcp/consul/consul.tf to fit your GCP identity file (or not), project, zone and Consul node count

**Step 4 - Enable GCP provider**
* terraform init gcp/consul

**Step 5 - Run script**
* terraform apply gcp/consul
* SSH to your node via GCP UI SSH and a Consul dev process will be there and can be checked with (consul info)

**Bingo!**
Requirements: GCP project, Service Account JSON file and Project wide SSH Key
2 changes: 1 addition & 1 deletion consul_vars/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# gcp/consul_vars
Terraform and Ansible script to deploy Consul 1.0.6 within a GCP instance.

Requirements: GCP project and Project wide SSH Key
Requirements: GCP project, Service Account JSON file and Project wide SSH Key

0 comments on commit 2271701

Please sign in to comment.