Re: [Puppet Users] Re: How to inherit a parameterized class ? What is the syntax ?

2011-10-18 Thread Alexandre Fouché
Hi all, thanks for your answers, After some though and to keep it simple, i think the simplest way is to simply merge the two classes as you proposed, and decide the behaviour with a parameter. As stupid as it is, i admit i did not even though about it, i was seeing my current puppet class organis

Re: [Puppet Users] How to inherit a parameterized class ? What is the syntax ?

2011-10-18 Thread Alexandre Fouché
Hi, The 3rd option is interesting, i should try it to see. So far i had tried a similar way, with a "realize", but instead of overriding the content file, i had some conditional blocks with a variable in the puppet.conf.erb file. And it did not work, because it seems the variable was never known

Re: [Puppet Users] Better solution for puppet SVN releases

2011-10-18 Thread Alexandre Fouché
I had a similar problem, i use Git, and i though i could use branches and Git tricks, but it does not mixes well with Puppet environments. What i do below permits to use many puppet code branches, while having my puppetmaster serve all different branches at the same time using environments In my c

Re: [Puppet Users] Puppet cant find a class

2011-10-18 Thread Alexandre Fouché
Sorry, it does not help with the problem, but some time ago, i think i had something similar. I had a module+class which is perfectly working, and which was included in the node code. But if this class was in included in another class, it could not be found and puppet run failed. I had no choice b

Re: [Puppet Users] Reusing host names with puppet and SSL certificates

2011-10-18 Thread Alexandre Fouché
As far as i could see, the Puppet cloud provisionner also generates a random name and creates a certificate request based on it. Then Puppet client is run with the certname option, set with this previously generated hostname 2011/10/17 James A. Peltier > - Original Message - > | > | Is

[Puppet Users] How to know the generated certname used by a puppet client, for reuse within erb (because of cloud provisioner) ?

2011-10-19 Thread Alexandre Fouché
Hi, I am using the cloud provisioner to bootstrap some ec2 nodes, and these clients are signed using a randomly generated certname, which is put in /etc/puppet.conf at the bootstrap time (eg certname = d7bcd693-73fd-495f-0876-ff91ea1e). But my puppet code repo also manages the puppet.conf fil

[Puppet Users] Why is 'notify' acting as a 'before' and not a 'require' ?

2012-01-24 Thread Alexandre Fouché
Why is 'notify' acting as a 'before' and not a 'require' ? Can someone explain why this way is unlogical to Puppet parser, why the 'notify' would create a dependency cycle ? Why would the 'notify' need to create an order ? Isn't it supposed to carry a message, and not a constraint ? Typically i w