hi,

yes better depends on personal preferences

Am Freitag, 16. März 2012 17:27:41 UTC+1 schrieb Jan Ivar Beddari:
>
> On 15. mars 2012 22:06, Florian Koch wrote:
> > Hi Dennis,
> >
> > i have found a better solution via create_resources (look at my reply to
> > Gery)
>
> Not neccessarily better in my mind because ..
>
> >     You should try something like this:
> >
> >     class tomcat::instance {
> >     $instances = hiera('tomcat_instances')
> >
> >     tomcat::installer { $instances[name]:
> >     basedir => $instances[basedir],
> >     logdir => $instances[logdir],
> >     user => $instances[user],
> >     group => $instances[group],
> >     }
> >     }
> >
> >     define tomcat::installer ($basedir, $logdir, $user, $group) {
> >     ...
> >     }
>
> .. this code is easier to explain and follow.
>
> Not to be underestimated! :-)
>
>
> -- 
> http://www.uib.no/personer/Jan.Ivar.Beddari
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/hSxs_BzeLJEJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to