Re: [Puppet Users] Re: Virtual resources and hashes

2011-06-09 Thread Sirtaj Singh Kang
On 08-Jun-11, at 9:31 PM, Brian Gallew wrote: [snip] See, there's the crux of the issue: arrays are *not* a method of looping. Puppet's DSL is declarative, not procedural (imperative). This isn't precisely true - every pure functional language I've seen has some sort of list map and

[Puppet Users] Re: Module variables missing during some puppet runs

2011-06-09 Thread treydock
Thanks John, the if has_variable was the key and allowed me to remove the default variable definition. If anyone is interested I posted an explanation and link to the source here, http://itscblog.tamu.edu/managing-zabbix-agents-with-puppet/. Thanks - Trey On Jun 6, 8:38 am, jcbollinger

Re: [Puppet Users] How to do array interpolation?

2011-06-09 Thread Felix Frank
Hi, On 06/08/2011 10:40 PM, Toby wrote: Hello all, sort of a puppet newbie here, I have some constructs that are like so: class hosts { file {/etc/hosts: owner = root, group = root, mode = 644, source = [puppet://puppet/files/etc/hosts.$hostname,

Re: [Puppet Users] Prerun, Postrun Commands, and Stages

2011-06-09 Thread Dean Wilson
On Wed, Jun 08, 2011 at 05:50:58PM -0700, Josh Cooper wrote: It'd be great to hear about your experience with the pre/post run commands and what use cases you are trying to solve. We use the feature to generate additional information about how the puppet run has changed the system:

[Puppet Users] Re: Creating Users and Hashing it's password.

2011-06-09 Thread vella1tj
Thank you all for the quick responses I really do appreciate it, you guys are awesome!!! On Jun 8, 5:38 pm, Nigel Kersten ni...@puppetlabs.com wrote: On Wed, Jun 8, 2011 at 2:38 PM, Nigel Kersten ni...@puppetlabs.com wrote: On Wed, Jun 8, 2011 at 2:11 PM, Denmat tu2bg...@gmail.com wrote:

Re: [Puppet Users] Prerun, Postrun Commands, and Stages

2011-06-09 Thread Nigel Kersten
On Thu, Jun 9, 2011 at 3:15 AM, Dean Wilson dwil...@unixdaemon.net wrote: On Wed, Jun 08, 2011 at 05:50:58PM -0700, Josh Cooper wrote: It'd be great to hear about your experience with the pre/post run commands and what use cases you are trying to solve. We use the feature to generate

[Puppet Users] Re: Prerun, Postrun Commands, and Stages

2011-06-09 Thread Luke Bigum
Hi Josh, This might be out of scope of your bug fix, but why not make the behaviour configurable? If prerun/postrun fails, give people the option of continuing or dying. prerun_command = /bin/meow prerun_failure_fatal = true It'd be great to hear about your experience with the pre/post run

[Puppet Users] Re: Virtual resources and hashes

2011-06-09 Thread jcbollinger
On Jun 9, 1:33 am, Sirtaj Singh Kang sirtaj.k...@gmail.com wrote: On 08-Jun-11, at 9:31 PM, Brian Gallew wrote: [snip] See, there's the crux of the issue: arrays are *not* a method of   looping.  Puppet's DSL is declarative, not procedural (imperative). This isn't precisely true -

Re: [Puppet Users] Re: Prerun, Postrun Commands, and Stages

2011-06-09 Thread Nigel Kersten
On Thu, Jun 9, 2011 at 7:04 AM, Luke Bigum luke.bi...@lmax.com wrote: Hi Josh, This might be out of scope of your bug fix, but why not make the behaviour configurable? If prerun/postrun fails, give people the option of continuing or dying. prerun_command = /bin/meow prerun_failure_fatal =

[Puppet Users] Exported resources for DNS and DHCP

2011-06-09 Thread Jonathan Gazeley
Hi all, I haven't used exported resources before, and I'm finding it a little confusing. Basically I want Puppet to know which of the servers have the DNS servers class applied to them, so it can use these servers' IP addresses when it generates the DHCP config. This way, if we add or

Re: [Puppet Users] Exported resources for DNS and DHCP

2011-06-09 Thread Ohad Levy
On Thu, Jun 9, 2011 at 5:40 PM, Jonathan Gazeley jonathan.gaze...@bristol.ac.uk wrote: Hi all, I haven't used exported resources before, and I'm finding it a little confusing. Basically I want Puppet to know which of the servers have the DNS servers class applied to them, so it can use

[Puppet Users] using command execution result as conditional

2011-06-09 Thread Guillaume Rousse
Hello. I'd like to enhance the classical package/configuration/service pattern with an additional stage: configuration syntax checking. The goal is to ensure a service won't be restarted with an invalid configuration first, but also to ensure this configuration error will get explicitly notified,

Re: [Puppet Users] Re: Virtual resources and hashes

2011-06-09 Thread Aaron Grewell
Part of the challenge is that I haven't seen a generally accepted language that succinctly describes what arrays do. If I had it to say again I would have said arrays are Puppet's only available declarative multiplier. On Thu, Jun 9, 2011 at 7:21 AM, jcbollinger john.bollin...@stjude.orgwrote:

Re: [Puppet Users] Re: Virtual resources and hashes

2011-06-09 Thread Sirtaj Singh Kang
(apologies for the derail) On 09-Jun-11, at 7:51 PM, jcbollinger wrote: [snip] On Jun 9, 1:33 am, Sirtaj Singh Kang sirtaj.k...@gmail.com wrote: On 08-Jun-11, at 9:31 PM, Brian Gallew wrote: [snip] See, there's the crux of the issue: arrays are *not* a method of looping. Puppet's DSL is

Re: [Puppet Users] Exported resources for DNS and DHCP

2011-06-09 Thread Daniel Pittman
On Thu, Jun 9, 2011 at 07:40, Jonathan Gazeley jonathan.gaze...@bristol.ac.uk wrote: I haven't used exported resources before, and I'm finding it a little confusing. Basically I want Puppet to know which of the servers have the DNS servers class applied to them, so it can use these servers'

Re: [Puppet Users] Prerun, Postrun Commands, and Stages

2011-06-09 Thread Josh Cooper
One use of pre commands that isn't solved with stages is to check Should I even do a Puppet run right now? or anything else that is out of band in a similar sense. This makes complete sense and is how the feature was intended to work, but unfortunately, it never has worked that way (for the

Re: [Puppet Users] Prerun, Postrun Commands, and Stages

2011-06-09 Thread Nigel Kersten
On Thu, Jun 9, 2011 at 1:22 PM, Josh Cooper j...@puppetlabs.com wrote: One use of pre commands that isn't solved with stages is to check Should I even do a Puppet run right now? or anything else that is out of band in a similar sense. This makes complete sense and is how the feature was

Re: [Puppet Users] Puppet-dashboard not linking to filebucket or diffs

2011-06-09 Thread Nigel Kersten
On Wed, May 4, 2011 at 2:20 PM, treydock treyd...@gmail.com wrote: In my puppet-dashboard when a change is made to files and it shows the MD5 sums I am never presented a link to view the file or any diffs of those files. I assume that the text between '[' and ']' is supposed to be the link

Re: [Puppet Users] Puppet-dashboard not linking to filebucket or diffs

2011-06-09 Thread Nigel Kersten
On Thu, Jun 9, 2011 at 3:28 PM, Nigel Kersten ni...@puppetlabs.com wrote: On Wed, May 4, 2011 at 2:20 PM, treydock treyd...@gmail.com wrote: In my puppet-dashboard when a change is made to files and it shows the MD5 sums I am never presented a link to view the file or any diffs of those

[Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-09 Thread Nigel Kersten
https://projects.puppetlabs.com/issues/7697 One problem people producing modules that make use of stages are hitting is that it's difficult to create something reusable that integrates seamlessly into existing setups. This feature request is to add several more implicit stages to Puppet so we

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-09 Thread Jacob Helwig
On Thu, 09 Jun 2011 18:42:54 -0700, Nigel Kersten wrote: https://projects.puppetlabs.com/issues/7697 One problem people producing modules that make use of stages are hitting is that it's difficult to create something reusable that integrates seamlessly into existing setups. This feature

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-09 Thread vagn scott
A while back I wrote down all the puppet patterns I could think of, and this was one of them. I named it Cradle To Grave, but probably that's not appropriate. However, I was only focusing on puppet runs at the time, so that name popped into my head. It is an instance of the more general pattern

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-09 Thread Martin Alfke
I prefer having a small number of predefined stages in puppet. This makes it easier to share modules which use stages. My suggestion: - a small number of stages is easier to remeber - a samll numer of possibilities makes people think in advance in which stage they need to put their module

Re: [Puppet Users] RFC: Adding implicit stages to Puppet

2011-06-09 Thread Chris Phillips
On 10 June 2011 02:50, Jacob Helwig ja...@puppetlabs.com wrote: On Thu, 09 Jun 2011 18:42:54 -0700, Nigel Kersten wrote: https://projects.puppetlabs.com/issues/7697 One problem people producing modules that make use of stages are hitting is that it's difficult to create something