Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

modify file for matched content

Hello Frds,

I am new with puppet. Just setup puppet master on centos and running agnet on freebsd. i tried with package installation and some basic file modification or creation stuff with puppet and really puppet makes life easier for administrator.

I am looking for a module or someway to modify specific file with specific content, let say that I want to make changes in file which files has key/value pair with delimeter should be tab,comma,equal sign or space.

For example, I want to make changes in fstab file, current i have partition name like /dev/sda1 now i want to set uuid instead of name.

Please suggest me to how to do it and also recommend me any reference manual or something to get it in more practical manner for administrator daily life stuffs.

Regards Benjo