Browse Source

rename

pull/78/head
Chris Mague 6 years ago
parent
commit
307edbef7d
  1. 2
      CHANGELOG.md
  2. 34
      DOCS.md
  3. 10
      README.md
  4. 2
      vendor/vendor.json

2
CHANGELOG.md

@ -20,7 +20,7 @@ See [DOCS.md](DOCS.md) for more info and examples.
* Update embedded TF to `0.10.8` * Update embedded TF to `0.10.8`
## 4.0-0.10.7 (2017-10-20) ## 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` * Update embedded TF to `0.10.7`
## 4.0-0.10.3 (2017-09-06) ## 4.0-0.10.3 (2017-09-06)

34
DOCS.md

@ -3,9 +3,9 @@ date: 2016-01-01T00:00:00+00:00
title: Terraform title: Terraform
author: jmccann author: jmccann
tags: [ infrastructure, build tool ] tags: [ infrastructure, build tool ]
repo: jmccann/drone-terraform repo: quay.io/agari/agari-drone-terraform
logo: terraform.svg 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`: 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 ```yaml
pipeline: pipeline:
terraform: terraform:
image: jmccann/drone-terraform:5 image: quay.io/agari/agari-drone-terraform:5
``` ```
Example configuration passing `vars` to terraform commands: Example configuration passing `vars` to terraform commands:
@ -21,7 +21,7 @@ Example configuration passing `vars` to terraform commands:
```diff ```diff
pipeline: pipeline:
terraform: terraform:
image: jmccann/drone-terraform:5 image: quay.io/agari/agari-drone-terraform:5
+ vars: + vars:
+ app_name: my-project + app_name: my-project
+ app_version: 1.0.0 + app_version: 1.0.0
@ -32,7 +32,7 @@ Example of explicitly specifying `actions` to perform a dry run.
```diff ```diff
pipeline: pipeline:
terraform: terraform:
image: jmccann/drone-terraform:5 image: quay.io/agari/agari-drone-terraform:5
+ actions: + actions:
+ - validate + - validate
+ - plan + - plan
@ -47,7 +47,7 @@ for more details.
```diff ```diff
pipeline: pipeline:
terraform: terraform:
image: jmccann/drone-terraform:5 image: quay.io/agari/agari-drone-terraform:5
+ secrets: + secrets:
+ - source: terraform_secret + - source: terraform_secret
+ target: tf_var_my_secret + target: tf_var_my_secret
@ -58,12 +58,12 @@ pipeline:
```diff ```diff
pipeline: pipeline:
terraform_1: terraform_1:
image: jmccann/drone-terraform:5 image: quay.io/agari/agari-drone-terraform:5
+ environment: + environment:
+ TF_VAR_MY_SECRET: ${TERRAFORM_SECRET} + TF_VAR_MY_SECRET: ${TERRAFORM_SECRET}
terraform_2: terraform_2:
image: jmccann/drone-terraform:5 image: quay.io/agari/agari-drone-terraform:5
plan: false plan: false
+ sensitive: true + sensitive: true
+ vars: + vars:
@ -78,7 +78,7 @@ what command is actually being ran.
```diff ```diff
pipeline: pipeline:
terraform: terraform:
image: jmccann/drone-terraform:5 image: quay.io/agari/agari-drone-terraform:5
+ sensitive: true + sensitive: true
``` ```
@ -89,7 +89,7 @@ specified instead of using the embedded version that is included.
```diff ```diff
pipeline: pipeline:
terraform: terraform:
image: jmccann/drone-terraform:5 image: quay.io/agari/agari-drone-terraform:5
+ tf_version: 0.10.3 + tf_version: 0.10.3
``` ```
@ -100,7 +100,7 @@ specified in a `.tf` file. You can then pass additional options via the `.drone
```diff ```diff
pipeline: pipeline:
terraform: terraform:
image: jmccann/drone-terraform:5 image: quay.io/agari/agari-drone-terraform:5
+ init_options: + init_options:
+ backend-config: + backend-config:
+ - "bucket=my-terraform-config-bucket" + - "bucket=my-terraform-config-bucket"
@ -116,7 +116,7 @@ CA Certificate. You can inject your CA Certificate into the plugin by using
```diff ```diff
pipeline: pipeline:
terraform: terraform:
image: jmccann/drone-terraform:5 image: quay.io/agari/agari-drone-terraform:5
+ ca_cert: | + ca_cert: |
+ -----BEGIN CERTIFICATE----- + -----BEGIN CERTIFICATE-----
+ asdfsadf + asdfsadf
@ -133,7 +133,7 @@ See [the discussion](https://github.com/hashicorp/terraform/issues/1275) in the
```diff ```diff
pipeline: pipeline:
terraform: 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 + 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 ```diff
pipeline: pipeline:
terraform: terraform:
image: jmccann/drone-terraform:5 image: quay.io/agari/agari-drone-terraform:5
+ root_dir: some/path/here + root_dir: some/path/here
``` ```
@ -155,7 +155,7 @@ all resources will be planned/applied against as the default behavior.
```diff ```diff
pipeline: pipeline:
terraform: terraform:
image: jmccann/drone-terraform:5 image: quay.io/agari/agari-drone-terraform:5
+ targets: + targets:
+ - aws_security_group.generic_sg + - aws_security_group.generic_sg
+ - aws_security_group.app_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 ```diff
pipeline: pipeline:
terraform: terraform:
image: jmccann/drone-terraform:5 image: quay.io/agari/agari-drone-terraform:5
+ parallelism: 2 + parallelism: 2
``` ```
@ -176,7 +176,7 @@ Destroying the service can be done by specifying `plan-destroy` and `destroy` ac
```yaml ```yaml
pipeline: pipeline:
destroy: destroy:
image: jmccann/drone-terraform:5 image: quay.io/agari/agari-drone-terraform:5
+ actions: + actions:
+ - plan-destroy + - plan-destroy
+ - destroy + - destroy

10
README.md

@ -1,9 +1,9 @@
# drone-terraform # 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 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 ## 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 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 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 \ docker run --rm \
-v $(pwd):$(pwd) \ -v $(pwd):$(pwd) \
-w $(pwd) \ -w $(pwd) \
jmccann/drone-terraform:latest --plan quay.io/agari/agari-drone-terraform:latest --plan
``` ```
## Drone 0.4 ## 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`

2
vendor/vendor.json

@ -181,5 +181,5 @@
"revisionTime": "2016-10-06T02:47:49Z" "revisionTime": "2016-10-06T02:47:49Z"
} }
], ],
"rootPath": "github.com/jmccann/drone-terraform" "rootPath": "github.com/quay.io/agari/agari-drone-terraform"
} }

Loading…
Cancel
Save