I never used the create_resources() and trying to get my head around it.  
So, how do I [re]write my define() type to work with  create_resources() to 
do the same thing similar to this:

class packages::zenpacks::core($pkgs_hash) {
>
>     define installer::zpack_installer($sure='present',
>                                       $inst='false',
>                                       $zp_ver, $zp_rep)) {
>         package { $name:
>             ensure   => $zp_ver,
>             require  => [
>                           Yumrepo[ $zp_rep ],
>                           Package[ 'zenpack-tools', 'patchutils' ],
>                         ];
>         }
>                   .......
>                   .......
>     }
>
>     create_resources(installer::zpack_installer, $pkgs_hash)
> }
>


For my purpose,  I think I still need to use inline_template() for the rqed 
key. 
When I install the individual zenpacks, I actually need to do this to 
complete the installation:


installer::zpack_installer { 
>     'zenpack-digmonitor': 
>     require  => Installer::Zpack_installer[ 'zenpack-apachemonitor' ];
> }
>

How do I handle that? 

-San

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/9e05a6cc-3432-4157-8e8f-45bfa8b70a4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to