How to check a particular keyword in a line of a file using puppet manifests?
Hi , I would like to check the file /etc/password. In that file i m going to check the home directory for root user. I want a puppet manifest to check for two conditions. 1 . The home directory should be /root - root:x:0:0:root:/root:/bin/bash - need to check /root for the home directory parameter 2. The home directory can be anything but could not be "/" -root:x:0:0:root:/:/bin/bash - need to check the home directory should not be "/"
Thanks in advance.