[ sorry for the late reply ]

Have you considered Exported Resources?
https://docs.puppetlabs.com/puppet/latest/reference/lang_exported.html

Tom


On Thu, Jun 11, 2015 at 4:21 PM, Albert Shih <albert.s...@obspm.fr> wrote:

> Hi,
>
> Let's say I have a module to manage something on a server so
>
>   modules/things/manifests/init.pp
>   ......................../addthing.pp
>
> the addthing.pp whould be a define.
>
> And I use this « addthing » inside other module, how can I get the list of
> all thing I add. For example
>
>   class my_service {
>
>     include ::things
>
>     things::addthing { 'first' }
>     things::addthing { 'second' }
>     things::addthing { 'third' }
>
>     # and now I want inside $my_things a string like 'first, second, third'
>
>     }
>
>
> Regards.
>
>
> --
> Albert SHIH
> Heure local/Local time:
> jeu 11 jui 2015 22:14:50 CEST
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/20150611202146.GB67815%40pcjas.obspm.fr
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Email: t...@whatexit.org    Work: tlimonce...@stackoverflow.com
Skype: YesThatTom
Blog:  http://EverythingSysadmin.com

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAHVFxgm5GY1%2B%3DLTdvjE%3D-R1v1A1RAjYDLX1RdG5XFBzK-wANbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to