Deploy Pivotal MySQL with omg in a Concourse pipeline.
-
Clone this repository.
git clone https://github.com/enaml-ops/concourse-deploy-pmysql.git
-
Copy the sample properties
deployment-props-sample.json
.cd concourse-deploy-pmysql cp deployment-props-sample.json deployment-props.json
-
Edit
deployment-props.json
, adding the appropriate values.This file is used to populate a
vault
hash. It holds the BOSH credentials for bothomg
(username/password) and the Concoursebosh-deployment
(UAA client) resource.$EDITOR deployment-props.json
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
.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-mysql-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=secret/mysql-nonprod-props vault write $VAULT_HASH @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: When you are deploying Pivotal MySQL, you must add your
API Token
found at the bottom of your Pivotal Profile page. -
Create or update the pipeline.
fly -t TARGET set-pipeline -p deploy-mysql -c ci/opensource-pipeline.yml -l pipeline-vars.yml
or
fly -t TARGET set-pipeline -p deploy-pmysql -c ci/pmysql-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-pmysql
-
Trigger the deployment job and observe the output.
fly -t TARGET trigger-job -j deploy-pmysql/get-product-version -w fly -t TARGET trigger-job -j deploy-pmysql/deploy -w