Hi all,
Due to some automation we want to set in place, I'd like to write my
own wrapper around several built-in types. Is there an easy way to
tell a defined type to allow all options that another type allows and
then some? What I'm looking for, really, is some equivalent to (sorry
Luke) Python's **kw argument. Is that currently possible? If not, how
would you view a feature request to that end?
If I need to name all options that my new defined type allows, so it
can pass them all on to the built-in type I'm writing the wrapper for,
what's the best way to define them in the definition? False or undef?
So like:
mypkg ($ensure = "installed", $responsefile = false) { ... do stuff,
including calling package { $name: ensure => $ensure, responsefile =>
$responsefile } }
Or:
mypkg ($ensure = "installed", $responsefile = undef) { ... do stuff,
including calling package { $name: ensure => $ensure, responsefile =>
$responsefile } }
I want to recreate package{}'s behaviour as closely as possible, of
course.
Thanks for any sort of advice in this!
--
Kind regards,
Tim Stoop (tim|macbook or tim|imac on IRC)
--
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.