rundeck-plugins / rundeck-ec2-nodes-plugin

Get resource node data from Amazon EC2
86 stars 45 forks source link

Allow merging instance tags and fields into the RunDeck tags #18

Closed rfletcher closed 9 years ago

rfletcher commented 10 years ago

I'd like to be able to merge EC2 fields and EC2 tags in the tags.selector field. For example, we'd like have EC2 availability zone as a tag in rundeck, along side our custom tags:

tags.selector=placement.availabilityZone|tags/role

If role=api and the AZ is us-east-1a, then the RunDeck tags should be "us-east-1a,api".

Update:

I just discovered this exception, caused by the configuration above:

java.lang.NoSuchMethodException: Unknown property 'availabilityZone|tags/role' on class 'class com.amazonaws.services.ec2.model.Placement'

Based on that I guessed that reversing the order might do the trick for now, and it does. But order dependency and the exception looks like a bug.

gschueler commented 10 years ago

sounds like a bug if the | is not split out before trying to pull out the bean property 'availabilityZone'