cf-ops-automation icon indicating copy to clipboard operation
cf-ops-automation copied to clipboard

Upgrate CF CLI to support variable substitution

Open o-orand opened this issue 6 years ago • 4 comments

Is your feature request related to a problem? Please describe. As operator, I want to able to leverage new CF CLI syntax, see https://github.com/orange-cloudfoundry/paas-templates/issues/71

and https://docs.cloudfoundry.org/devguide/deploy-apps/manifest-attributes.html#variable-substitution

Given a vars.yml file such as

instances: 2
memory: 1G

Given an app manifest file using the following format: ((VARIABLE-NAME)) such as :1234:

---
applications:
- name: test-app
  instances: ((instances))
  memory: ((memory))
  buildpacks:
  - go_buildpack
  env:
    GOPACKAGENAME: go_calls_ruby
  command: go_calls_ruby

and CF CLI invoked with cf push --vars-file /PATH/vars.yml then CF CLI pushes an interpolated manifest file.

o-orand avatar Aug 08 '18 13:08 o-orand

use 6.38 with cf-deployment 1.40

poblin-orange avatar Aug 27 '18 15:08 poblin-orange

use 6.41 with cf-deployment 2.7 paas templates 36

poblin-orange avatar Jan 08 '19 13:01 poblin-orange

Potentially useful in https://github.com/orange-cloudfoundry/cf-services-bench/issues/2

gberche-orange avatar Feb 08 '19 12:02 gberche-orange

bosh deployment with scripting release can compensate this

poblin-orange avatar Oct 03 '19 10:10 poblin-orange