forked from sveronneau/gcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7cd3802
commit 2271701
Showing
2 changed files
with
2 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |