rosenhouse / cf-filler

fill in the variables for your cf-deployment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DEPRECATED

Please see the cf-deployment README for how to use the new --vars-store feature in the bosh-cli


cf-filler

Build Status

Generate variables to fill in cf-deployment using the fancy new (alpha) bosh-cli.

Install

go get github.com/rosenhouse/cf-filler

Note

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.

Usage

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.

Running the tests

  • Locally

    go get github.com/cloudfoundry/bosh-cli
    ./test
  • On a remote Concourse

    fly -t myconcourse execute -x -c ci/test.yml

About

fill in the variables for your cf-deployment

License:Apache License 2.0


Languages

Language:Go 92.6%Language:Shell 7.4%