Please see the cf-deployment README for how to use the new --vars-store
feature in the bosh-cli
Generate variables to fill in cf-deployment using the fancy new (alpha) bosh-cli.
go get github.com/rosenhouse/cf-filler
Make sure you're using bosh-cli
v0.0.107 or higher. Older versions don't play nicely with cf-filler
.
Also, it appears that this functionality is now built the bosh cli! Check out cf-deployment#24 for an example.
You'll need a "recipe" file that describes the variables to generate.
At the time of this writing, cf-deployment
includes its own recipe
(permalink in case that changes).
cf-filler -recipe ~/workspace/cf-deployment/recipe-cf-deployment.yml \
-dnsname my-env.example.com > /tmp/vars.yml
bosh-cli build-manifest --var-errs --var-file=/tmp/vars.yml \
~/workspace/cf-deployment/cf-filler/cf-deployment.yml > /tmp/my-deployment.yml
bosh-cli -e my-director -d cf deploy /tmp/my-deployment.yml
If you modify cf-deployment
(say to add extra jobs), you may need to customize your recipe file as well.
-
Locally
go get github.com/cloudfoundry/bosh-cli ./test
-
On a remote Concourse
fly -t myconcourse execute -x -c ci/test.yml