[Puppet Users] Variable Scoping = Root Canal

2010-06-27 Thread Douglas Garstang
I've been struggling with puppet variable scope all day, well, for several months actually. I think I have pretty simple requirements. For any given node, I want to be able to set a series of variables and include a set of classes, based on three different aspects of a node, being physical

[Puppet Users] Re: Variable Scoping = Root Canal

2010-06-27 Thread Al @ Lab42
On 27 Giu, 09:02, Douglas Garstang doug.garst...@gmail.com wrote: I've been struggling with puppet variable scope all day, well, for several months actually. I think I have pretty simple requirements. For any given node, I want to be able to set a series of variables and include a set of

Re: [Puppet Users] Variable Scoping = Root Canal

2010-06-27 Thread Steve Neuharth
I think you could do: node 'node1.fr.xxx.com' { include facility::sjc $my_ldap_server = $facility::sjc::ldap_server include ldap::client } On Sun, Jun 27, 2010 at 2:02 AM, Douglas Garstang doug.garst...@gmail.comwrote: I've been struggling with puppet variable scope all day, well, for

Re: [Puppet Users] Variable Scoping = Root Canal

2010-06-27 Thread Douglas Garstang
On Sun, Jun 27, 2010 at 11:28 AM, Steve Neuharth steve.neuha...@gmail.com wrote: I think you could do: node 'node1.fr.xxx.com' {  include facility::sjc  $my_ldap_server = $facility::sjc::ldap_server  include ldap::client } That seems to work. Not pretty though. I'll go see if it causes any

Re: [Puppet Users] Re: Yet more variable scoping pain.

2010-06-27 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I disagree. And I disagree with you. Not being able to do this is _REALLY_ annoying... no, it is absolutely right that this isn't possible. Actually, we would have a lot more pain if this would be possible. cheers pete -BEGIN PGP

[Puppet Users] Borked Client Cert in 0.25

2010-06-27 Thread Douglas Garstang
Here we go with puppet 0.25 certificate problems again. I had a system where puppet was running fine. I reinstalled it. Running puppet on the client causes this: Could not request certificate: Retrieved certificate does not match private key; please remove certificate from server and regenerate

[Puppet Users] Re: Borked Client Cert in 0.25

2010-06-27 Thread Douglas Garstang
On Sun, Jun 27, 2010 at 12:47 PM, Douglas Garstang doug.garst...@gmail.com wrote: On Sun, Jun 27, 2010 at 12:34 PM, Douglas Garstang doug.garst...@gmail.com wrote: Here we go with puppet 0.25 certificate problems again. I had a system where puppet was running fine. I reinstalled it. Running

Re: [Puppet Users] Re: Borked Client Cert in 0.25

2010-06-27 Thread Patrick Mohr
On Jun 27, 2010, at 12:50 PM, Douglas Garstang wrote: On Sun, Jun 27, 2010 at 12:47 PM, Douglas Garstang doug.garst...@gmail.com wrote: On Sun, Jun 27, 2010 at 12:34 PM, Douglas Garstang doug.garst...@gmail.com wrote: Here we go with puppet 0.25 certificate problems again. I had a system

Re: [Puppet Users] Variable Scoping = Root Canal

2010-06-27 Thread Steve Neuharth
Yup, I hear ya. This was a pain until I realized that the only variables defined in nodes are inherited from node to node. The variables defined in classes that are included by the node must be expressed using the variable's full context. I just ended up mapping certain variables to other

Re: [Puppet Users] Complex templating

2010-06-27 Thread Douglas Garstang
On Sun, Jun 27, 2010 at 3:20 AM, Daniel Pittman dan...@rimspace.net wrote: Douglas Garstang doug.garst...@gmail.com writes: On Sat, Jun 26, 2010 at 8:00 PM, Daniel Pittman dan...@rimspace.net wrote: R.I.Pienaar r...@devco.net writes: - Douglas Garstang doug.garst...@gmail.com wrote: I've

[Puppet Users] Re: Variable Scoping = Root Canal

2010-06-27 Thread Al @ Lab42
On Jun 27, 7:38 pm, Douglas Garstang doug.garst...@gmail.com wrote: The problem with doing something with ${facility::ldap_server} is that it should really be called ${facility::sjc::ldap_server}, and when you do that, you completely destroy the whole point of inheritance. The ldap client

[Puppet Users] Re: Variable Scoping = Root Canal

2010-06-27 Thread Al @ Lab42
On Jun 27, 8:25 pm, Douglas Garstang doug.garst...@gmail.com wrote: On Sun, Jun 27, 2010 at 12:48 AM, Al @ Lab42 lab42...@gmail.com wrote: On 27 Giu, 09:02, Douglas Garstang doug.garst...@gmail.com wrote: I've been struggling with puppet variable scope all day, well, for several months

[Puppet Users] Re: Variable Scoping = Root Canal

2010-06-27 Thread Brian
On Jun 27, 3:02 am, Douglas Garstang doug.garst...@gmail.com wrote: So... what am I missing here, and why is such a simple thing so complicated in puppet? I'm not even sure if this email is lucid. I am really annoyed and frustrated as hell. The only way I've found to do this and stay sane is

Re: [Puppet Users] Re: Variable Scoping = Root Canal

2010-06-27 Thread James Turnbull
Brian wrote: On Jun 27, 3:02 am, Douglas Garstang doug.garst...@gmail.com wrote: So... what am I missing here, and why is such a simple thing so complicated in puppet? I'm not even sure if this email is lucid. I am really annoyed and frustrated as hell. The only way I've found to do this