[Puppet Users] subscribe and require with exec

2008-11-14 Thread Casey Deccio
Hi, I'd like to be able to use subscribe with exec to refresh when files change, but I'd like each refresh to be dependent on another exec--e.g., to test configuration syntax. The closest I've been able to come is what I have below (I've removed some of the rest of the detail), but the problem is

[Puppet Users] Re: subscribe and require with exec

2008-11-14 Thread Casey Deccio
On Fri, Nov 14, 2008 at 8:43 AM, RijilV <[EMAIL PROTECTED]> wrote: > In this case you could be kinda sneaky and use the 'onlyif' parameter: > > exec { "reload-squid": > command => "/etc/init.d/squid reload", > subscribe => Exec["check-squid"], > refreshonly => true, > onlyif => "/u

[Puppet Users] Re: subscribe and require with exec

2008-11-17 Thread Casey Deccio
On Fri, Nov 14, 2008 at 9:11 AM, Casey Deccio <[EMAIL PROTECTED]> wrote: > In this case, the squid -k parse would pass, and the squid init script would > exit successfully, so squid would never detect a problem. However, squid > would have problems functioning at run time (i.e.,

[Puppet Users] disable client runs

2008-11-19 Thread Casey Deccio
What is the appropriate client setting for runinterval to allow me to disable client runs? I would like to have the puppetd daemon running but only have it check in when triggered by another node. Casey --~--~-~--~~~---~--~~ You received this message because you a

[Puppet Users] RRD reports question

2008-11-20 Thread Casey Deccio
Using puppet-0.24.5, I have installed RRDTool and have the following configuration on the puppetmaster server: [puppetmasterd] reports = rrdgraph,tagmail When a client checks in, however, I get the following message in the logs on the server: Report rrdgraph failed: Could not create RRD file

[Puppet Users] notify and reload

2008-11-25 Thread Casey Deccio
If a have a file that has "notify" set for a particular service, will the service always be "restarted" when the file changes, or is there a way to specify that it should instead "reload"? I know I can use exec with "subscribe" and "refreshonly", but it seems like extra work if it could be include

[Puppet Users] Accessing a file source from a custom function

2008-12-09 Thread Casey Deccio
I'd like to be able to generate the contents of a file resource based on the contents of another file resources. For example: File { "/tmp/myfile": source => "puppet:///mymodule/myfile", } File { "/tmp/otherfile": content =>generate_otherfile(File["/tmp/myfile"])), } in this case the genera

[Puppet Users] Custom package install best practices

2008-12-09 Thread Casey Deccio
Is there a "best practice" way to install custom packages--i.e., not from the standard repository, but from a stand-alone .deb, .rpm, .tgz file, etc.? Off the top of my head, I can think of creating a definition that uses arguments for filename, version, etc., but I'm interested in what others hav

[Puppet Users] accessing dependencies from Resource Reference instances

2008-12-18 Thread Casey Deccio
Is it possible to access dependencies given a Resources Reference object? For example, in my manifest I might want to build the command executed in an exec (or service "restart") dynamically, based on the dependencies, so it knows which files may have been modified in the process. This could be do