cloudfoundry-attic / bosh-init

bosh-init is a tool used to create and update the Director VM
Apache License 2.0
31 stars 33 forks source link

Possible to use variables in bosh-init yml #69

Closed mattcui closed 8 years ago

mattcui commented 8 years ago

In the past, we define variables at the top of yml (embraced with <%...%>) when deploying micro-bosh with bosh-cli and micro-plugin. But we found it can't work with bosh-init, is there a way to use variables in yml to deploy a micro bosh with bosh-init? Thanks.

dpb587-pivotal commented 8 years ago

Not currently possible with bosh-init. Not sure if it's a planned feature or anything.

As an alternative, you might be able to pre-parse it with something like erb bosh-init.yml.erb > bosh-init.yml before running your bosh-init deploy bosh-init.yml.

cppforlife commented 8 years ago

@mattcui it's not planned to add ERB rendering of manifests. we are planning to add {{..}} concourse/fly style interpolation soon.

DonBower commented 6 years ago

did this get implemented?

dpb587-pivotal commented 6 years ago

@DonBower yes, please see this doc for the new BOSH CLI.

DonBower commented 6 years ago

@dpb587-pivotal The Document you refer to is for Bosh CLI V2, not BOSH-INIT.

dpb587-pivotal commented 6 years ago

@DonBower bosh create-env replaces bosh-init create and has support for variables. This bosh-init repository is no longer maintained in favor of that.