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
> 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
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.
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
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
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
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"
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