Deploy Pivotal Spring Cloud Services with omg in a Concourse pipeline.
-
Clone this repository.
git clone https://github.com/enaml-ops/concourse-deploy-scs.git
-
Copy the sample config file
deployment-props-sample.json
.cd concourse-deploy-scs cp deployment-props-sample.json deployment-props.json
-
Edit
deployment-props.json
, adding the appropriate values. This file is used to populate avault
hash. It holds the BOSH credentials for bothomg
(username/password) and the Concoursebosh-deployment
(UAA client) resource.omg
will also read other key/value pairs added here, matching them to command-line arguments. For example, to add theomg
plugin parameter--syslog-address
, you could add"syslog-address": "10.150.12.10"
here rather than modifying the manifest generation script inci/tasks
.$EDITOR deployment-props.json
All available parameters/keys can be listed by querying the plugin. If not specified in
deployment-props.json
, default values will be used where possible.omg-linux deploy-product p-spring-cloud-services-plugin-linux --help
-
Load your deployment properties into
vault
.VAULT_HASH
you define here andvault_hash_misc
inpipeline-vars.yml
below must match. You may consider using thevault
hash here to hold common settings, referenced by multipleomg
-based deployments. In such a case, you might name the hash something likesecret/nonprod-common-props
.export VAULT_ADDR=http://YOUR_VAULT_ADDR:8200 export VAULT_HASH_MISC=secret/nonprod-common-props vault write $VAULT_HASH_MISC @deployment-props.json
-
Delete or move
deployment-props.json
to a secure location. -
Copy the pipeline variables template.
cp pipeline-vars-template.yml pipeline-vars.yml
-
Edit
pipeline-vars.yml
, adding appropriate values.$EDITOR pipeline-vars.yml
Note: If you are deploying Pivotal Spring Cloud Services (P-SCS), you must add your
API Token
found at the bottom of your Pivotal Profile page. -
Create or update the pipeline, either opensource or P-SCS.
fly -t TARGET set-pipeline -p deploy-scs -c ci/opensource-pipeline.yml -l pipeline-vars.yml
or
fly -t TARGET set-pipeline -p deploy-scs -c ci/scs-pipeline.yml -l pipeline-vars.yml
-
Delete or move
pipeline-vars.yml
to a secure location. -
Unpause the pipeline
fly -t TARGET unpause-pipeline -p deploy-scs
-
Trigger the deployment job and observe the output.
fly -t TARGET trigger-job -j deploy-scs/get-product-version -w fly -t TARGET trigger-job -j deploy-scs/deploy -w