rundeck-plugins / rundeck-ec2-nodes-plugin

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

Unable to filter for linux nodes #108

Open TheTomahawk opened 4 years ago

TheTomahawk commented 4 years ago

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.

TheTomahawk commented 4 years ago

As per typical, I worked out a solution to this a few minutes after posting the question.

The answer is:

Et voilá, it works.