Deploy Cloud Foundry with omg in a Concourse pipeline.
-
Clone this repository.
git clone https://github.com/enaml-ops/concourse-deploy-cloudfoundry.git
-
Initialize the repo for your deployment.
cd concourse-deploy-cloudfoundry ./init.sh
-
Edit
setup/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 ert-1-8-linux --help
-
Edit
setup/(oss|pcf)-pipeline-vars.yml
These files are the open source and pcf equivalents of each other. Choose which type of deployment you would like and complete the values for your environment -
Create or update the pipeline, either opensource or PCF.
fly -t CF-Concourse set-pipeline -p deploy-oss-cloudfoundry -c ci/opensource-pipeline.yml -l setup/oss-pipeline-vars.yml --var "vault-json-string=$(cat setup/deployment-props.json)" fly -t CF-Concourse unpause-pipeline -p deploy-oss-cloudfoundry
or
fly -t CF-Concourse set-pipeline -p deploy-pcf-ert-1.8 -c ci/pcf-pipeline.yml -l setup/pcf-pipeline-vars.yml --var "vault-json-string=$(cat setup/deployment-props.json)" fly -t CF-Concourse unpause-pipeline -p deploy-pcf-ert-1.8 fly -t CF-Concourse trigger-job -j deploy-pcf-ert-1.8/load-vault-properties -w
-
Delete or move
setup/*
to a secure location. These files are gitignored, but might contain sensitive information and great care should be taken in how/where/if these are kept -
Trigger the deployment job and observe the output.
fly -t TARGET trigger-job -j deploy-pcf/deploy -w