search for: simpletextrecipes

Displaying 9 results from an estimated 9 matches for "simpletextrecipes".

2007 Aug 20
1
SimpleTextRecipes
I have copied the simple text snippets into a pp file and set a host to attempt to add lines, but regardless if the line is there or not, it still adds it... what am I doing wrong? in definitions/linetests.pp: define append_if_no_such_line($file, $line) { exec { "echo ''$line'' >> ''$file''": unless => "grep -qe
2007 Nov 12
11
Various FreeBSD bits...
I just drudged through a bit of the archives and see a FreeBSD bits floating in there that are of some value, but aren''t on the wiki. I posted a few bits on the wiki regarding some FreeBSD cobbling that I''ve done recently and hope that folk find it of use (and start posting their useful bits there as well). http://reductivelabs.com/trac/puppet/wiki/PuppetFreeBSD The
2007 Sep 11
6
Managing rc.conf in FreeBSD?
I''m, still, working on converting my cfengine configs into puppet; one of the major hang-ups is the lack of any find/replace in puppet. So for those of you who are using FreeBSD and puppet, how do you manage you rc.conf? -- -- Perfection is just a word I use occasionally with mustard. --Atom Powers--
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 puppetmaster: Aug 7 08:27:58 mngr01 puppetmasterd[26482]: Unrecognised escape sequen...
2007 Feb 06
14
Unless in exec doesn''t seem to be honored on notify.
This was a fun one to track down... I was trying to use the append_if_no_such_line script from the wiki and it was working fine EXCEPT when I threw a notify at it. The notify appears to completely ignore both unless and onlyif within the exec for some reason. If I put the same test in the actual command line, it works fine. Example: unless => "/bin/grep -Fqe ''$line''
2007 Aug 16
6
definitions v. plugins
i was looking at the simple text recipes wiki: http://reductivelabs.com/trac/puppet/wiki/SimpleTextRecipes and based on that wrote something that can ensure a certain variable in a config file is set to a specific value, using a specific delimiter as requested (defaults to a space). this seems to work great at managing all sorts of unix and mac config files (sshd_config, hostconfig on macs). right no...
2007 Apr 09
11
Issues with Puppet on FreeBSD / Creating a Recipe
Hi, I am running an environment with 15 FreeBSD servers on which I want to maintain ports, rc.conf settings, and assorted configuration in /usr/local/etc/. Looked around the existing Puppet docs, I got a puppetmaster and a test client to work and install a package as specified in the site manifest. This is very basic but awesome! I want to create a puppet FreeBSD HowTo that addresses a
2007 May 26
13
munin module: manage clients and server''s config
...easy. - munin::server should also be managed automatically, but here the solution is not so clear to me. Following these pages: http://mail.madstop.com/pipermail/puppet-users/2007-January/000926.html http://reductivelabs.com/trac/puppet/wiki/BracketEditor http://reductivelabs.com/trac/puppet/wiki/SimpleTextRecipes I get the impression that the munin-server has to be the same host than the puppet server. I am thinking of taking the above recipes to generate the munin.conf. But how do I deploy it then? To manage the server and the clients with minimum effort, I thought that it should be enough to have on...
2007 Mar 08
16
CFengine into Puppet
I finally got my cfengine configs all objectified and separated into service-based configurations. But there are still many things that cfe can''t or won''t do very well, so I''m looking for a replacement. What about puppet? I am looking for something that I can use to manage services and applications, not hosts and files. It seems like puppet may have inherited some of