Create group based on Operating System

Hi. I’d like to create a groups based on:

Operating System Linux 3.10.0-229.14.1.el7.x86_64 (CentOS 7.1.1503)

and:

Operating System Linux 3.16.0-4-amd64 (Debian 8.6)

ie. based on whether the OS is Debian or CentOS.

I’ve tried docs, researching, searching and more docs, can’t find how to pull this query.

Any ideas?

Try: %devices.features ~ "debian" &&

Hi. Thanks that worked like a charm.

I was able to do this for CentOS and Debian.

I also just found from another post, you can use “devices.os” with “windows” keyword which can list also the windows machines too.

Appreciate your assistance. Thanks again.