Re: [Puppet Users] Re: subscribing a service to multiple files ?

2010-07-20 Thread Luke Schierer
service { "httpd": subscribe => [File['one'],File['two']], } should work Luke On Jul 20, 2010, at 08:10 EDT, Tore wrote: > You could also do: > class httpd { > ... > file { '/etc/monit.d/httpd.conf': > ... >notify => Service['monit'] > } > > } > >

Re: [Puppet Users] tidy -- ignoring sockets?

2010-03-14 Thread Luke Schierer
On Mar 14, 2010, at 18:37 EDT, Luke Kanies wrote: > On Feb 26, 2010, at 12:07 PM, Alan Sparks wrote: > >> I've a tidy resource for /tmp under 0.24.8, which throws errors each run >> due to a socket file created by xfs under /tmp/.font-unix/. It's >> relatively harmless, but it fills the logs wi

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

2009-12-08 Thread Luke Schierer
On Mon, Dec 7, 2009 at 2:27 AM, Peter Meier wrote: > -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[:nam

[Puppet Users] Re: Multiple environments

2009-11-12 Thread Luke Schierer
I just had to set the environment variable in the puppet.conf file before starting the puppetd daemon. Then in each class I use that variable to determine what happens, for example file { "smtpd.conf": owner => root, group => root, mode=> 600,

[Puppet Users] removing excess permissions

2009-11-09 Thread Luke Schierer
Does anyone have a puppet recipe that would remove extraneous permissions on files and directories without explicitly setting what the permissions should be? I have an application that creates and manipulates a bunch of temp files and directories under /tmp, and I'd like to remove the unn

[Puppet Users] Re: tagmail configuration

2009-10-12 Thread Luke Schierer
On Thu, Oct 8, 2009 at 6:14 PM, Luke Schierer wrote: > I am trying to configure tagmail to send emails to different segments of > the team based on the classes that are loaded. For the most part it seems > to be working, but I'm having trouble with getting a rule that will send

[Puppet Users] tagmail configuration

2009-10-08 Thread Luke Schierer
I am trying to configure tagmail to send emails to different segments of the team based on the classes that are loaded. For the most part it seems to be working, but I'm having trouble with getting a rule that will send an email for everything except events related to a particular class, or those

[Puppet Users] Re: copying file from multiple sources

2009-10-05 Thread Luke Schierer
On Mon, Sep 28, 2009 at 3:12 PM, Luke Schierer wrote: > > > On Fri, Sep 25, 2009 at 4:04 PM, Luke Schierer > wrote: > >> >> This works for my redhat 5 machines, I'm able to pull from the array of >> sources. However, it does n work for redhat 4 machines.

[Puppet Users] Re: copying file from multiple sources

2009-09-28 Thread Luke Schierer
On Fri, Sep 25, 2009 at 4:04 PM, Luke Schierer wrote: > > This works for my redhat 5 machines, I'm able to pull from the array of > sources. However, it does n work for redhat 4 machines. If a redhat 4 > machine is listed in the array, I get > > err: Could not call filese

[Puppet Users] Re: copying file from multiple sources

2009-09-25 Thread Luke Schierer
On Fri, Sep 25, 2009 at 1:23 PM, Luke Schierer wrote: > On Thu, Sep 24, 2009 at 11:43 AM, Luke Schierer > wrote: > >> I have the following snippet I am using to test with the puppet command >> >> node host1 { >> >> file { "/var/www/target": &

[Puppet Users] Re: copying file from multiple sources

2009-09-25 Thread Luke Schierer
On Thu, Sep 24, 2009 at 11:43 AM, Luke Schierer wrote: > I have the following snippet I am using to test with the puppet command > > node host1 { > > file { "/var/www/target": > path => "/var/www/target", > mode => 570, > owner =>

[Puppet Users] Re: copying file from multiple sources

2009-09-24 Thread Luke Schierer
ond puppetmaster with its > FQDN? e.g. > > source => > puppet://second.foor.com/module/file/..<http://second.foor.com/module/> > .. > > Ohad > > > On Thu, Sep 24, 2009 at 2:26 PM, Luke Schierer wrote: > >> >> The secondaries are each clients of the first one

[Puppet Users] Re: copying file from multiple sources

2009-09-23 Thread Luke Schierer
gine2, it was > very simple to have cfservd running on each host, distribute the keys > to each, and then pull result files from the clients to the central > server. I cannot seem to find an example of a similar setup with > puppet. > > Luke > > On Sep 22, 4:3

[Puppet Users] Re: copying file from multiple sources

2009-09-22 Thread Luke Schierer
On Sat, Sep 19, 2009 at 7:53 AM, Luke Schierer wrote: > On Sep 19, 2009, at 05:11 EDT, Peter Meier wrote: > >> The standard way to do that is: >>>> source => >>>> ["puppet:///foo/file-$hostname","puppet:///foo/file-$lsbdistcodename >>

[Puppet Users] Re: copying file from multiple sources

2009-09-19 Thread Luke Schierer
On Sep 19, 2009, at 05:11 EDT, Peter Meier wrote: > > Hi > >>> The standard way to do that is: >>> source => >>> ["puppet:///foo/file-$hostname","puppet:///foo/file-$lsbdistcodename >>> ","puppet:///foo/file"] >>> - check for modules/foo/file-www4, then file-jaunty, then file >>> >> >> As I und

[Puppet Users] Re: copying file from multiple sources

2009-09-18 Thread Luke Schierer
> - check for modules/foo/file-www4, then file-jaunty, then file > As I understood source arrays, would only grab the first one to succeed, Type Reference says "If you specify multiple file sources for a file, then the first source that exists will be used.".Is that page

[Puppet Users] copying file from multiple sources

2009-09-18 Thread Luke Schierer
I am looking at migrating a set of servers from cfengine management to puppet management. For the most part, the move has been relatively straight forward, and I am pleased with the way that puppet's modules have made some of the things I did in cfengine2 much cleaner. There is one thing though t