[ 
https://issues.apache.org/jira/browse/BROOKLYN-381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15647955#comment-15647955
 ] 

ASF GitHub Bot commented on BROOKLYN-381:
-----------------------------------------

GitHub user aledsage opened a pull request:

    https://github.com/apache/brooklyn-server/pull/417

    BROOKLYN-381: support nested DSL for $brooklyn:entity()

    Note this builds on https://github.com/apache/brooklyn-server/pull/416; 
please review + merge that PR first. I'll then rebase so the initial commits 
disappear.
    
    @googlielmo you'll be interested in this.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/aledsage/brooklyn-server 
feature/dsl-entity-nested-dsl

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/brooklyn-server/pull/417.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #417
    
----

----


> Support nested DSL in $brooklyn:entity
> --------------------------------------
>
>                 Key: BROOKLYN-381
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-381
>             Project: Brooklyn
>          Issue Type: Improvement
>    Affects Versions: 0.9.0
>            Reporter: Aled Sage
>
> When using the yaml DSL to look up values on other entities, it would be 
> useful to be able to make this more dynamic by getting the entity id from the 
> DSL (e.g. from another attribute).
> For example, a slightly simplified example below - note the DSL for "url", to 
> retrieve the URL from an entity whose id is set dynamically on the 
> {{TestHttpCall}} entity:
> {noformat}
> services:
> - type: org.apache.brooklyn.entity.nosql.riak.RiakCluster
>   id: target-app
> ...
> - type: loop-test-case
>   name: "Value replicated on all Riak nodes"
>   brooklyn.config:
>     target: $brooklyn:component("target-app")
>     testSpec:
>       $brooklyn:entitySpec:
>         type: test-http-status-200
>         brooklyn.config:
>           url: 
> $brooklyn:entity(config("targetId")).attributeWhenReady("main.uri")
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to