rundeck-ec2-nodes-plugin
rundeck-ec2-nodes-plugin copied to clipboard
Unable to filter for linux nodes
Setting a filter platform=windows
will filter for Windows nodes. AWS doesn't provide a value to platform
for linux nodes, and trying to do a filter of platform=
or platform=null
or platform=''
, or another number of such ideas, will load all nodes including the windows nodes (or none at all).
Is there any way I can get just the linux nodes?
We want to be able to SSH to the linux nodes, and need to setup the Windows nodes to use WinRM, so maybe there is another way to solve this? Currently I'm trying to use 2 separate Node Sources in RunDeck to pull in the 2 different types of nodes.
As per typical, I worked out a solution to this a few minutes after posting the question.
The answer is:
- don't filter on the AWS EC2 Node Source. Take in all of the EC2 nodes!
- add 2 Node Enhancers -- that's a tab at the top of the Edit Nodes... screen that was being completely ignored
- one Enhancer has the Attribute Matches set to
osName==windows
, and the WinRM details in the Attributes to Add box. The other hasosName==Linux
and the SSH details listed.
Et voilá, it works.