Ken
2010-Mar-27 01:14 UTC
[Puppet Users] using class style namespace with custom resources
Hi,
Is it possible to create custom types/providers using class-style
notation? ie.:
foo::type { bar: attr => true }
Much like one would do with define-base resources
class foo {
define bar($attr) {
# ...
}
}
I''ve tried variations like so:
Puppet::Type.newtype(:''foo::bar'') do
# ...
end
But its not correct.
I''m trying to keep my namespace meaningful and to provide the ability
to mix define-based and ruby-based resources without the caller being
aware. Also the theory is that a define-based resource with such a
namespace (ie. foo::bar) could be converted to a ruby-based one
without changing the interface contract.
ken.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.