Skip to content
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

Unable to filter for linux nodes #108

Open
TheTomahawk opened this issue May 7, 2020 · 1 comment
Open

Unable to filter for linux nodes #108

TheTomahawk opened this issue May 7, 2020 · 1 comment

Comments

@TheTomahawk
Copy link

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
Copy link
Author

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 has osName==Linux and the SSH details listed.

Et voilá, it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant