[Puppet Users] Dynamically create arguments for a define (or parametrized class)

2011-10-27 Thread Alessandro Franceschi
Maybe I'm asking too much, but is there a way to dynamically add resources in a define/parametrized class based on a variable (or hash) passed to a containing class/define? Something that when I call boo { bah: options = { optiona = valuea, optionb = valueb, }, } gets

Re: [Puppet Users] Dynamically create arguments for a define (or parametrized class)

2011-10-27 Thread Henrik Lindberg
Did you try something like: define boo($a=a, $b=b, $c=c) { bar { $title: a = $a, b = $b, c = $c, } } boo { 'the title' : a = a value, c = c value } - henrik On 10/27/11 1:29 PM, Alessandro Franceschi wrote: Maybe I'm asking too much, but is there a way to dynamically

Re: [Puppet Users] Dynamically create arguments for a define (or parametrized class)

2011-10-27 Thread Alessandro Franceschi
On Thursday, October 27, 2011 4:03:42 PM UTC+1, Henrik Lindberg wrote: Did you try something like: define boo($a=a, $b=b, $c=c) { bar { $title: a = $a, b = $b, c = $c, } } boo { 'the title' : a = a value, c = c value } Thanks for reply, Henrik What