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 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.