On 09/01/17 14:22, Martin Alfke wrote:
Hi Henrik,
A non-existent type will in some versions of puppet be taken as being a
resource type.
One thing you can check is that your module (where you are using Stdlib::XXX
types have declared a dependency on Stdlib in its metadata. If it does not have
this it will not find types in Stdlib.
do I get that right:
Self defined data types (in Modules) are only working when adding a
metdata.json file to the module which makes use of the self defined data type?
Or with other words: self defined data types are not autoloaded?
Self defined data types are autoloaded. If you are referencing types in
another module, your module must have that other module as a dependency
in its meta data. This is true for self defined data types as well as
for functions written against the 4.x API.
For references to entities in the same module there is no need to
declare anything. Everything in a module is visible to that same module.
Does that help?
- henrik
Best,
Martin
--
Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/76f54063-e8ec-d12c-edfa-62766cb7c5d7%40puppet.com.
For more options, visit https://groups.google.com/d/optout.