-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin De-Duplicating EC2 Nodes with same name? #10
Comments
Rundeck uses the node "name" as the unique identifier. If you have instances with the same "name", you will need to switch to a unique value for the nodename. I think you would need to use the instanceId as the nodename selector. The ec2 plugin doesn't really support any composition of values to produce a field value, i think that would be a useful feature however. |
I had the same issue. I solved it by changing the below value in mapping.properties file. From: nodename.selector=tags/Name,instanceId |
Same issue here, with ASGs of more than 10 nodes, only end up seeing 1. Unfortunately, relying on |
@scalp42 would allowing something like |
yes @gschueler would totally work 👍 I think the only issue is how do you handle something like "$name-$instanceid", meaning with a dash etc and would compounding multiple ones with multiples |
Also, at this point anything would be great but worth mentioning that some folks might have the
So tricky at best 🍶 |
It definitely makes the mapping syntax more complicated.
I was imagining using
would become "$name-$id" effectively |
Oh that makes sense, yeah would totally work! PS: if I had Java chops, I'd def help 🙊 |
@scalp42 sorry i misunderstood. you mean in the rundeck search? you can search |
@gschueler got it :) |
does this get resolved in rundeck 2.6.4? I am more interesting to know how to setup this from the mappingParam at UI level. Now I have the syntax like this,
Although it mapped the node, but it can't de-deplicate the node instances. I'd like to see one to many mapping for my autoscaling group: X --> x1, x2, x3, ... xN. How can I accomplish that by mappingParams |
I have a number of auto-scaling groups that create nodes that, whilst having different EC2 tags, all have the same instance "name". It seems that the plugin is de-duplicating instances that have the same name and is not displaying them as nodes in Rundeck.
I.e. when I log in to the EC2 console, I have 330 running instances that come up. In Rundeck, only 218 appear when I pull with the same key via the EC2 plugin.
Each ASG that I have for each environment (dev, qa, stage, uat, etc) has multiple instances, all with the same instance name (although different tags, security groups, etc). Like:
Name Tag
fff-dev1-cq5-stack AuthorAutoscaleGroup
fff-dev1-cq5-stack PublishAutoscaleGroup
fff-dev1-cq5-stack DispatchAutoscaleGroup
But in Rundeck, only one of the above appears.
Is there something I can do to convince it that different instances are different, even if they have the same name?
The text was updated successfully, but these errors were encountered: