search for: delete_lines

Displaying 3 results from an estimated 3 matches for "delete_lines".

2007 Aug 07
2
"Unrecognized escape sequence" from puppetmaster
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I''m using the "delete_lines" definition from http://reductivelabs.com/trac/puppet/wiki/SimpleTextRecipes . However, when I use it to remove a line with the pattern "/proc/kmsg" I need to escape the slashes for sed/grep and so I end up with "\/proc\/kmsg", but then I get this notices in the log of pupp...
2011 Apr 12
1
any better way to manage access control via /etc/passwd
We need to manage /etc/passwd where there would be one line at the very end of the file to restrict access to all users not explictly allowed: +::::::/sbin/nologin If using delete_lines and append_if_no_such_lines (similar to this one at http://www.debian-administration.org/articles/528) to manage access control, each time a few new users got appended to /etc/passwd file, the above line would be deleted and appended, for many times, while it only needs to be done once. Any better...
2007 Sep 30
3
managing FreeBSD services
Hi, I''d like to hear opinions from FreeBSD users. I''ve wrote a freebsd service provider, which is available as Ticket #837. http://reductivelabs.com/trac/puppet/ticket/837 This hack extends init service provider, by adding enable method. With freebsd.rb, you can enable services like other service providers do. service { foo: ensure => running, enable => true, ...