Daniel, you just need to extract the value into a variable and then use
that variable:
$data = ['titi', 'tutu']
class { "apache": toto => $data }
class { "tomcat": tata => $data}
You might also want to ask this kind of question on the puppet-users
mailing list, where there are a lot of people available to answer questions
like this. This list is often used for discussion and announcements around
the development on puppet itself.
On Thu, Jul 11, 2013 at 11:03 AM, <[email protected]> wrote:
> Hi,
> here is my problem :
>
> I have one class for an apache server
>
>
>
> I would want to use the values of this parameter on another class
>
>
> ex:
> class {"apache" : toto => ['titi','tutu'] }
>
> class {"tomcat" : tata => ::apache::toto }
>
> No way to do this. Any idea ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/puppet-dev.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
Andrew Parker
[email protected]
Freenode: zaphod42
Twitter: @aparker42
Software Developer
*Join us at PuppetConf 2013, August 22-23 in San Francisco - *
http://bit.ly/pupconf13*
**Register now and take advantage of the Early Bird discount - save 25%!*
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-dev.
For more options, visit https://groups.google.com/groups/opt_out.