Skip to content

Commit

Permalink
Added BOSH password generation for Concourse (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
vshatravenko authored and Louis committed Oct 9, 2017
1 parent 3ae1746 commit 4ef3d1c
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 6 deletions.
5 changes: 4 additions & 1 deletion tpl/aws/bin/concourse-deploy.sh.tt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ bosh -e <%= @values['bosh']['name'] %> upload-release https://bosh.io/d/github.c
bosh -e <%= @values['bosh']['name'] %> upload-release https://bosh.io/d/github.com/cloudfoundry-incubator/garden-runc-release

# Deploy Concourse
bosh -e <%= @values['bosh']['name'] %> -d concourse deploy deployments/concourse/concourse.yml -v vault_token=$1
bosh -e <%= @values['bosh']['name'] %> -d concourse \
deploy deployments/concourse/concourse.yml \
-v vault_token=$1 \
--vars-store config/creds.yml
6 changes: 6 additions & 0 deletions tpl/aws/deployments/concourse/concourse.yml.tt
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,9 @@ stemcells:
- alias: trusty
os: ubuntu-trusty
version: latest

variables:
- name: db_password
type: password
- name: auth_password
type: password
4 changes: 2 additions & 2 deletions tpl/aws/docs/concourse.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

Fill out the "token" field in `deployments/concourse/concourse.yml` with root token received from `vault init`.

Deploy Concourse by running the script with the required arguments
Deploy Concourse by running the script with the Vault token as argument(strong passwords for Concourse auth and db will be generated automatically)
```
./bin/concourse-deploy.sh *concourse_auth_password* *concourse_db_password* *vault_token*
./bin/concourse-deploy.sh *vault_token*
```

### Connect GitHub oAuth
Expand Down
5 changes: 4 additions & 1 deletion tpl/gcp/bin/concourse-deploy.sh.tt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ bosh -e <%= @values['bosh']['name'] %> upload-release https://github.com/concour
bosh -e <%= @values['bosh']['name'] %> upload-release https://github.com/concourse/concourse/releases/download/v3.4.1/garden-runc-1.6.0.tgz

# Deploy Concourse
bosh -e <%= @values['bosh']['name'] %> -d concourse deploy deployments/concourse/concourse.yml -v auth_password=$1 -v db_password=$2 -v vault_token=$3
bosh -e <%= @values['bosh']['name'] %> -d concourse \
deploy deployments/concourse/concourse.yml \
-v vault_token=$1 \
--vars-store config/creds.yml
6 changes: 6 additions & 0 deletions tpl/gcp/deployments/concourse/concourse.yml.tt
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,9 @@ stemcells:
- alias: trusty
os: ubuntu-trusty
version: latest

variables:
- name: db_password
type: password
- name: auth_password
type: password
4 changes: 2 additions & 2 deletions tpl/gcp/docs/concourse.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

Fill out the "token" field in `deployments/concourse/concourse.yml` with root token received from `vault init`.

Deploy Concourse by running the script with the required arguments
Deploy Concourse by running the script with the Vault token as argument(strong passwords for Concourse auth and db will be generated automatically)
```
./bin/concourse-deploy.sh *concourse_auth_password* *concourse_db_password* *vault_token*
./bin/concourse-deploy.sh *vault_token*
```

### Connect GitHub oAuth
Expand Down

0 comments on commit 4ef3d1c

Please sign in to comment.