(imported topic written by cmstraka91)
Hi, I am trying to figure out how to determine if specific lines exist within a file on a RHEL system. There are a lot of use cases, so let me start with something basic:
I want to read the contents of /etc/resolv.conf to get specfic DNS server settings.
Something like an analysis with relevance being all my linux systems and the property being something like: lines of file “/etc/resolv.conf” Hopefully reporting the lines of the file as the property
From there, I want to create relevance checks against this property (the lines of the file) to determine which machines do not have the correct lines in the file, and thus the wrong DNS settings.
Maybe this is simple, but I am somewhat new to fixlet authoring.