Re: [Puppet Users] Re: "other end went away" leads to multiple report mails

2009-12-06 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > The base of the code is something like: > > require "puppet" > require "yaml" > require "find" > Puppet[:config] = "/etc/puppet/puppet.conf" > Puppet.parse_config > Puppet[:name] = "puppetmasterd" > Puppet::Node::Facts.terminus_class = :yaml > File.

Re: [Puppet Users] Definition including a class

2009-12-06 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > That's not working for me Pete. > > class db_deploy::base { > $build_user = "build" > } > > define db_deploy::starterkit($db_deploy_version, $db_type="mysql") { > include db_deploy::base > file { > > "${dir_deploy}/${db_deploy

Re: [Puppet Users] "other end went away" leads to multiple report mails

2009-12-06 Thread Ohad Levy
Hi, when developing Foreman[1], I've also seen it similar problem (Reports are being sent more than once). I've worked around it in Foreman, maybe that would be a better alternative to tagmail altogether. Cheers, Ohad *1 http://theforeman.org On Mon, Dec 7, 2009 at 7:33 AM, Neil Prockter wro

[Puppet Users] Re: "other end went away" leads to multiple report mails

2009-12-06 Thread Greg
Neil, I had a similar problem back when I was running 0.24.7 and 0.24.8 on Solaris. My solution was to remove tagmail completely and put in a seperate system that parsed the YAML reports and send a single email combining all changes during a given period of time (in my case - daily). Required a li

Re: [Puppet Users] /wiki/TypeReference is slow/timing out

2009-12-06 Thread Rob Chanter
On Thu, Dec 3, 2009 at 11:53 AM, Luke Kanies wrote: > > Looks like Bruce will be modifying RailsGuides to use Markdown, and > we'll use that. > Github-flavored Markdown? Makes a few tweaks to standard Markdown that are a Good Thing for code-centric documentation. cheers rob -- You received th

[Puppet Users] "other end went away" leads to multiple report mails

2009-12-06 Thread Neil Prockter
Evening All, I've been getting a random number of copies of report mails, the same report sent multiple times at the same second, and finally got tired enough of it to look into it. They are sent from puppet rather than a mail server issue. I get one extra copy every time the client gets a "wa

Re: [Puppet Users] Definition including a class

2009-12-06 Thread Douglas Garstang
On Sun, Dec 6, 2009 at 2:55 AM, Peter Meier wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi > >> I have a definition where I am trying to include a class... >> >> class db_deploy::base { >>     $build_user = "build" >> } >> >> define db_deploy::elements($db_deploy_version) { >>    

[Puppet Users] User Modification

2009-12-06 Thread jokeeffe
I'm trying to do something like this using puppet 0.24.8. define removeuser() { @ user { $name: ensure => absent } realize User["$name"] } $removelist = ["bob", "bill", "billy"] @ removeuser { $removelist : } It's failing with "err: Could not retrieve catalog: Failed to realize vir

Re: [Puppet Users] Definition including a class

2009-12-06 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi > I have a definition where I am trying to include a class... > > class db_deploy::base { > $build_user = "build" > } > > define db_deploy::elements($db_deploy_version) { > include db_deploy::base > > # Use $build_user here > } > >