It works, thanks.

Benoit Decherf wrote:
> Create a definition that create the environments :
>
> define prepare_env() {
>
>     $env = $name
>
>     file { "e${env}-website1":
>         ...
>     }
>     ...
>
> }
>
>
> And in a class, call it with the array "envs":
>
> class main_class {
>
>     prepare_env{$envs: }
>
> }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to