You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by ge...@apache.org on 2017/07/31 11:52:21 UTC

[2/2] brooklyn-server git commit: Closes #781

Closes #781

Support DSL in template options

At the moment it's not possible to specify DSL in template options - for example you can't do

      - type: some-type-publishing-subnet-id
        id: ent1

      - type: some-service
        id: service
        brooklyn.config:
          provisioning.properties:
            templateOptions:
              subnetId: $brooklyn:entity("ent1").attributeWhenReady("subnet.id")

see new test [here](https://github.com/geomacy/brooklyn-server/commit/d2f5bf9e0a5038208ff98aedb16795c217d01fc7#diff-99cb6184bb386646b61f6678346ec63bR75).

This adds support in `TemplateOptionsOption` for resolving the values supplied for the options. This allows the approach in the blueprint above to be used.


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/2bad5261
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/2bad5261
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/2bad5261

Branch: refs/heads/master
Commit: 2bad5261a33978826373373134a7be94e5cfecb6
Parents: 8405626 676b50f
Author: Geoff Macartney <ge...@cloudsoftcorp.com>
Authored: Mon Jul 31 12:52:04 2017 +0100
Committer: Geoff Macartney <ge...@cloudsoftcorp.com>
Committed: Mon Jul 31 12:52:04 2017 +0100

----------------------------------------------------------------------
 ...loudsCustomizerInstantiationYamlDslTest.java |  17 ++-
 .../JcloudsTemplateOptionsYamlAwsTest.java      | 129 +++++++++++++++++++
 .../JcloudsTemplateOptionsYamlTest.java         |  26 ++--
 .../customize/TemplateOptionsOption.java        |  30 ++++-
 4 files changed, 180 insertions(+), 22 deletions(-)
----------------------------------------------------------------------