Issue #12930 has been updated by Daniel Pittman.
Is this really the right approach?
A few alternatives that have demonstrably worked elsewhere:
We could support an `autoload.pp`, or `loaddefs.pp`, or some equivalent that
was loaded out of any module on the path. That would allow people to make
public things automagically get loaded, and is still pretty clear to users what
is or isn't pulled in.
We could support the equivalent of the Emacs `autoload` tag:
### autoload ###
class automatically::available { … }
class but::not::this::one { … }
That is more magical, in that automatically loaded / applied things can be
hidden *anywhere* in the tree, but it solves at least some of the "I need X
available everywhere" problems.
The final, obvious solution is that we just load every *.pp file from every
module without bothering with "autoloaded" or anything. That way everything is
in core, always, and we just select what is applied using the include, etc,
mechanisms.
----------------------------------------
Feature #12930: Provide a manifest directory where all manifests are
automatically parsed.
https://projects.puppetlabs.com/issues/12930#change-56308
Author: Nigel Kersten
Status: Investigating
Priority: Normal
Assignee: Randall Hansen
Category:
Target version: Telly
Affected Puppet version:
Keywords:
Branch:
There is at least one major use case where users need to import a set of
manifest files, the following pattern:
<pre>
# manifests/site.pp
import nodes/*.pp
</pre>
As per the parent ticket, we're looking to deprecate `import`, and the most
obvious solution appears to be to offer a configuration option for a directory
where all manifest files are automatically parsed, much like site.pp is now.
This option *does* need to be per-environment.
Randall, I'm looking for input from your team on the user-facing design here,
and if this solution is appropriate, tactical info like the actual name of the
configuration parameter.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" 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-bugs?hl=en.