Aled Sage created BROOKLYN-297:
----------------------------------

             Summary: Support yaml DSL for "name"
                 Key: BROOKLYN-297
                 URL: https://issues.apache.org/jira/browse/BROOKLYN-297
             Project: Brooklyn
          Issue Type: Improvement
    Affects Versions: 0.9.0
            Reporter: Aled Sage
            Priority: Minor


When providing the name of an entity in yaml, it would be good to be able to 
use DSL as we can for config.

For example, we have a catalog item for an entity that creates a docker 
container. A natural name for it would be the prefix "Container: " followed by 
the image name (as illustrated in the syntax below).

{noformat}
brooklyn.catalog:
  version: 1.0.0
  items:
  - id: docker-container
    itemType: entity
    item:
      type: ...

      brooklyn.parameters:
        - name: imageName
          type: string

      name:
        $brooklyn:formatString:
        - "Container: %s"
        - $brooklyn:config("imageName")

      ...
{noformat}




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

Reply via email to