[Puppet Users] Virtual ressource in a define

2010-01-11 Thread Sébastien Prud'homme
Hi, I get a "duplicate definition problem" with Puppet 0.24.8 when using virtual ressource in a define: Here is a sample : define mydefine1 { @package { postfix: } } define mydefine2 { mydefine1 { $name: } realize Package[postfix] } mydefine2 { test1: } mydefine2 { test2: } Here is the

Re: [Puppet Users] Re: Virtual ressource in a define

2010-01-11 Thread Sébastien Prud'homme
> On Jan 11, 6:03 am, Sébastien Prud'homme > wrote: >> Does someone know if it's a bug or if i'm doing things the wrong way? > > As Sliviu explained, you're doing things the wrong way.  What he gave > you resolve your errors, but it is focused on how to g

Re: [Puppet Users] Re: Virtual ressource in a define

2010-01-12 Thread Sébastien Prud'homme
but i find it's not an elegant solution. 2010/1/12 jcbollinger : > > > On Jan 11, 3:41 pm, Sébastien Prud'homme > wrote: >> Thanks for the responses. My example is just an example. My real >> "define" has some parameters so it's not possible to use a class.

Re: [Puppet Users] Re: Virtual ressource in a define

2010-01-13 Thread Sébastien Prud'homme
Ok, thanks for all your explanations. I didn't noticed the virtual ressource was declared twice... Thanks a lot again. 2010/1/13 jcbollinger : > > > On Jan 13, 8:47 am, jcbollinger wrote: >> YMMV, but I don't see anything inelegant about that. > > Note also that you can then simplify your defini

[Puppet Users] Variable substitution problem

2008-10-10 Thread Sébastien Prud'homme
Hi, I m' trying to do something like this in Puppet (my version is 0.23.0) : $myprefix = "myvalue" file { "/my/file": group => "$myprefix_group", } Unfortunately Puppet replaces "$myprefix_group" by "" instead of "myvalue_group". If i use a "." separator instead of "_", the substitutio

[Puppet Users] Re: Variable substitution problem

2008-10-10 Thread Sébastien Prud'homme
Ok i'll try that next monday. Thanks 2008/10/10 Mike Pountney <[EMAIL PROTECTED]>: > > > Try "${myprefix}_group" > > On 10 Oct 2008, at 13:40, Sébastien Prud'homme wrote: > >> >> Hi, >> >> I m' trying to do something l

[Puppet Users] Re: Variable substitution problem

2008-10-13 Thread Sébastien Prud'homme
It's fine now thanks to Mike's advice. 2008/10/10 Sébastien Prud'homme <[EMAIL PROTECTED]>: > Ok i'll try that next monday. > > Thanks > > 2008/10/10 Mike Pountney <[EMAIL PROTECTED]>: >> >> >> Try "${myprefix}_group"

[Puppet Users] Re: permissions on mounts/mount points

2009-05-27 Thread Sébastien Prud'homme
Hi, I had the same problem last week and i solved it by creating a facter plugin that returns all the mountpoints used on my system. I then use and "if" statement in Puppet configuration to check whether the mount fact exists or not to do what i want. I don't know if is the best method to do tha