diff --git a/CHANGELOG.md b/CHANGELOG.md index 89c040f..ab82373 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,7 +20,7 @@ See [DOCS.md](DOCS.md) for more info and examples. * Update embedded TF to `0.10.8` ## 4.0-0.10.7 (2017-10-20) -* Persist state locking config (https://github.com/jmccann/drone-terraform/pull/55) +* Persist state locking config (https://github.com/quay.io/agari/agari-drone-terraform/pull/55) * Update embedded TF to `0.10.7` ## 4.0-0.10.3 (2017-09-06) diff --git a/DOCS.md b/DOCS.md index 38ad943..78c2870 100644 --- a/DOCS.md +++ b/DOCS.md @@ -3,9 +3,9 @@ date: 2016-01-01T00:00:00+00:00 title: Terraform author: jmccann tags: [ infrastructure, build tool ] -repo: jmccann/drone-terraform +repo: quay.io/agari/agari-drone-terraform logo: terraform.svg -image: jmccann/drone-terraform +image: quay.io/agari/agari-drone-terraform --- The Terraform plugin applies the infrastructure configuration contained within the repository. The below pipeline configuration demonstrates simple usage which will run a `validate`, `plan` and `apply`: @@ -13,7 +13,7 @@ The Terraform plugin applies the infrastructure configuration contained within t ```yaml pipeline: terraform: - image: jmccann/drone-terraform:5 + image: quay.io/agari/agari-drone-terraform:5 ``` Example configuration passing `vars` to terraform commands: @@ -21,7 +21,7 @@ Example configuration passing `vars` to terraform commands: ```diff pipeline: terraform: - image: jmccann/drone-terraform:5 + image: quay.io/agari/agari-drone-terraform:5 + vars: + app_name: my-project + app_version: 1.0.0 @@ -32,7 +32,7 @@ Example of explicitly specifying `actions` to perform a dry run. ```diff pipeline: terraform: - image: jmccann/drone-terraform:5 + image: quay.io/agari/agari-drone-terraform:5 + actions: + - validate + - plan @@ -47,7 +47,7 @@ for more details. ```diff pipeline: terraform: - image: jmccann/drone-terraform:5 + image: quay.io/agari/agari-drone-terraform:5 + secrets: + - source: terraform_secret + target: tf_var_my_secret @@ -58,12 +58,12 @@ pipeline: ```diff pipeline: terraform_1: - image: jmccann/drone-terraform:5 + image: quay.io/agari/agari-drone-terraform:5 + environment: + TF_VAR_MY_SECRET: ${TERRAFORM_SECRET} terraform_2: - image: jmccann/drone-terraform:5 + image: quay.io/agari/agari-drone-terraform:5 plan: false + sensitive: true + vars: @@ -78,7 +78,7 @@ what command is actually being ran. ```diff pipeline: terraform: - image: jmccann/drone-terraform:5 + image: quay.io/agari/agari-drone-terraform:5 + sensitive: true ``` @@ -89,7 +89,7 @@ specified instead of using the embedded version that is included. ```diff pipeline: terraform: - image: jmccann/drone-terraform:5 + image: quay.io/agari/agari-drone-terraform:5 + tf_version: 0.10.3 ``` @@ -100,7 +100,7 @@ specified in a `.tf` file. You can then pass additional options via the `.drone ```diff pipeline: terraform: - image: jmccann/drone-terraform:5 + image: quay.io/agari/agari-drone-terraform:5 + init_options: + backend-config: + - "bucket=my-terraform-config-bucket" @@ -116,7 +116,7 @@ CA Certificate. You can inject your CA Certificate into the plugin by using ```diff pipeline: terraform: - image: jmccann/drone-terraform:5 + image: quay.io/agari/agari-drone-terraform:5 + ca_cert: | + -----BEGIN CERTIFICATE----- + asdfsadf @@ -133,7 +133,7 @@ See [the discussion](https://github.com/hashicorp/terraform/issues/1275) in the ```diff pipeline: terraform: - image: jmccann/drone-terraform:5 + image: quay.io/agari/agari-drone-terraform:5 + role_arn_to_assume: arn:aws:iam::account-of-role-to-assume:role/name-of-role ``` @@ -144,7 +144,7 @@ and you want to use different drone configurations to apply different environmen ```diff pipeline: terraform: - image: jmccann/drone-terraform:5 + image: quay.io/agari/agari-drone-terraform:5 + root_dir: some/path/here ``` @@ -155,7 +155,7 @@ all resources will be planned/applied against as the default behavior. ```diff pipeline: terraform: - image: jmccann/drone-terraform:5 + image: quay.io/agari/agari-drone-terraform:5 + targets: + - aws_security_group.generic_sg + - aws_security_group.app_sg @@ -167,7 +167,7 @@ If you want to change Terraform's default parallelism (currently equal to 10) th ```diff pipeline: terraform: - image: jmccann/drone-terraform:5 + image: quay.io/agari/agari-drone-terraform:5 + parallelism: 2 ``` @@ -176,7 +176,7 @@ Destroying the service can be done by specifying `plan-destroy` and `destroy` ac ```yaml pipeline: destroy: - image: jmccann/drone-terraform:5 + image: quay.io/agari/agari-drone-terraform:5 + actions: + - plan-destroy + - destroy diff --git a/README.md b/README.md index b5e4368..3ac404a 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # drone-terraform -[![Build Status](http://beta.drone.io/api/badges/jmccann/drone-terraform/status.svg)](http://beta.drone.io/jmccann/drone-terraform) +[![Build Status](http://beta.drone.io/api/badges/quay.io/agari/agari-drone-terraform/status.svg)](http://beta.drone.io/quay.io/agari/agari-drone-terraform) Drone plugin to execute Terraform plan and apply. For the usage information and -a listing of the available options please take a look at [the docs](https://github.com/jmccann/drone-terraform/blob/master/DOCS.md). +a listing of the available options please take a look at [the docs](https://github.com/quay.io/agari/agari-drone-terraform/blob/master/DOCS.md). ## Build @@ -20,7 +20,7 @@ Build the docker image with the following commands: ``` CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo -docker build --rm=true -t jmccann/drone-terraform . +docker build --rm=true -t quay.io/agari/agari-drone-terraform . ``` Please note incorrectly building the image for the correct x64 linux and with @@ -39,9 +39,9 @@ Execute from the working directory: docker run --rm \ -v $(pwd):$(pwd) \ -w $(pwd) \ - jmccann/drone-terraform:latest --plan + quay.io/agari/agari-drone-terraform:latest --plan ``` ## Drone 0.4 -Legacy `drone-terraform` plugin exists @ `jmccann/drone-terraform:0.4` +Legacy `drone-terraform` plugin exists @ `quay.io/agari/agari-drone-terraform:0.4` diff --git a/vendor/vendor.json b/vendor/vendor.json index 3c62460..ac78daa 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -181,5 +181,5 @@ "revisionTime": "2016-10-06T02:47:49Z" } ], - "rootPath": "github.com/jmccann/drone-terraform" + "rootPath": "github.com/quay.io/agari/agari-drone-terraform" }