Issue #14074 has been updated by Chris Price. Assignee deleted (Chris Price)
---------------------------------------- Bug #14074: libdir setting is honored on the command line but not in puppet.conf https://projects.puppetlabs.com/issues/14074#change-65087 Author: Jeff McCune Status: Accepted Priority: Normal Assignee: Category: modules Target version: 2.7.x Affected Puppet version: Keywords: libdir puppet.conf defaults settings Branch: # Overview # In order to work around #14073 I've explicitly set the libdir in puppet.conf like so: <pre> [main] server=puppet pluginsync=true autoflush=true modulepath=Z:/vagrant/modules libdir=Z:/vagrant/modules/registry/lib </pre> However, this doesn't have the desired effect: # Expected Behavior # This command should list registry_key and registry_value in the output: <pre> C:\>puppet describe --list ... registry_key - .. no documentation .. registry_value - .. no documentation .. </pre> # Actual Behavior # The types are not loaded as they should be if they're available on the $LOAD_PATH. As a result, they don't show up in the documentation and are not available to the rest of the system. However, specifying libdir on the command line does in fact make the types and providers available: <pre> puppet describe --libdir=Z:/vagrant/modules/registry/lib --list ... registry_key - .. no documentation .. registry_value - .. no documentation .. </pre> This demonstrates a clear disconnect between the behavior of libdir specified on the command line and the behavior of libdir specified in puppet.conf. # Impact Data # Until #14073 is resolved, there is no easy work around to get types to automatically load from modules using Puppet Apply. The command line options must be used instead of puppet.conf, or RUBYLIB or some other hack to the $LOAD_PATH must be employed. I haven't heard of any users or customers reporting this yet. -- 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.
