puppetlabs/puppet — pull request #1319 by joshcooper (2012-12-07 06:09:27+00:00)
Title: (#7316) Append module plugin directories to $LOAD_PATH

These changes add modulepath lib directories to the $LOAD_PATH for applications other than agent or master. In the case of agent, modules are pluginsynced to the libdir, so it can already load faces, e.g. if you had a provider that needed to execute a face application. In the case of a master, we already use the autoloader to load code, e.g. functions and reports, from environment specific modulepaths.

These commits do not solve issue http://projects.puppetlabs.com/issues/4248, which is the ability for master-side code to require utility code from modules. Additional changes will be required to support that.

There is also still an issue with cloud provisioner, since the node_aws face uses the --tags option that conflicts with puppet's global option of the same name. This is issue http://projects.puppetlabs.com/issues/16651.