Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

How to check a particular keyword in a line of a file using puppet manifests?

$
0
0
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. Regards, Sathya.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>