In my module, I have something like this to installed some base packages:

package {
>     'rpm-mon-ntp':
>     ensure   => latest,
>     require  => Yumrepo[ "mon-repo-test" ];
>
>     'rpm-mon-utils':
>     ensure   => installed,
>     require  => Yumrepo[ "mon-utils-test" ];
>     
>    'rpm-mon-patch':
>     ensure   => installed,
>     require  => [ 
>                  Yumrepo[ "mon-repo-test" ],
>                  Package[ 'mon-tools', 'patch-utils' ],
>                 ];
> }
>

I want to use hiera to supply the values - repo-name, rpm-name, version 
etc. Is it possible at all?
I suppose, in the .yaml I can have something like this (in {repo-name{rpm-name: 
version}} format) : 


rpm_mon_base_pack:
>     mon-repo-test:
>         rpm-mon-ntp: latest
>         rpm-mon-patch: installed
>
    mon-utils-test:
>         rpm-mon-utils: latest
>


but then, how do I do to make the package{} to get the values from hiera? 
How do I handle the case when Package[] is also required? Any help/pointer? 

Best!


-- 
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/068472ad-0a19-4862-a7d3-5d93d49f2a91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to