duncangrant opened a new pull request #1267:
URL: https://github.com/apache/brooklyn-server/pull/1267


   DO NOT MERGE
   
   The initializers part of this code is not working.  This PR is for 
discussion purposes only.
   
   I've been testing this code with this yaml
   ```   
   
   location: localhost
       name: Brooklyn Deployment
       services:
       - type: org.apache.brooklyn.entity.software.base.EmptySoftwareProcess
         brooklyn.config:
           example: "dfdfsdfsfs"
           displayName: "MyEntity"
         brooklyn.initializers:
         - type: org.apache.brooklyn.core.sensor.StaticSensor
           brooklyn.config:
             name: tf.resource.type
             static.value: aws_instance
   
       - type: org.apache.brooklyn.entity.group.DynamicGroup
         name: EC2 instances
         brooklyn.policies:
         - type: org.apache.brooklyn.entity.group.GroupsChangePolicy
           brooklyn.config:
             group: $brooklyn:self()
             member.policies:
             - type: org.apache.brooklyn.policy.action.PeriodicEffectorPolicy
               brooklyn.config:
                 period: 5s
                 effector: $brooklyn:formatString("%s%s","res","tart")
                 myconfig: $brooklyn:formatString("%s%s","res", 
attributeWhenReady("tf.resource.type"))
             member.initializers:
             - type: org.apache.brooklyn.core.sensor.StaticSensor
               brooklyn.config:
                 name: testsensor
                 target.type: string
                 static.value: $brooklyn:formatString("%s%s","test","sensor")
   
               # Add linus ssh sensor
         brooklyn.config:
           dynamicgroup.entityfilter:
             $brooklyn:object:
               type: org.apache.brooklyn.core.entity.EntityPredicates
               factoryMethod.name: displayNameEqualTo
               factoryMethod.args:
               - "Empty Software Process"
   
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brooklyn.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to