Github user ahgittin commented on the issue:

    https://github.com/apache/brooklyn-server/pull/428
  
    @grkvlt @aledsage @neykov love this direction - i assume this 
`LocationEntity` proxies the child?
    
    i was thinking a similar but more generic pattern
    
    ```
    - type: context-sensitive-proxying-parent
      switch:
        01-aws:
          condition:
            regex-match: [ $brooklyn:location(), ".*aws-ec2" ]
          spec:
            type: aws-load-balancer
        05-default:
          spec:
            type: nginx
    ```
    
    not exactly sure how we want to do:
    * the location reference in the DSL
    * expressing conditions in this entity
    * the actual condition test
    
    feels like a `subtype-of` with `jclouds:aws-ec2` and 
`jclouds:aws-ec2:us-west-1` recognised as types, and maybe using typed 
relations to find the actual location (`$brooklyn:relation("in-location")`) ..
    
    but that's in the future, something pragmatic like what we have here makes 
sense for now (though haven't reviewed code)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to