Set the Ruby load path

The ruby_load_path setting determines where Puppet Server finds components such as Puppet and Facter.

The default setting is:

$puppetserver_jruby_puppet_ruby_load_path = [ \
'/opt/puppetlabs/puppet/lib/ruby/vendor_ruby', \
'/opt/puppetlabs/puppet/cache/lib']
If you change the libdir you must also change the vardir.

You can change the load path array in pe.conf.

  1. On your primary server, open the pe.conf file in a text editor.
  2. Add the following parameter and specify the new load path array:
    puppet_enterprise::master::puppetserver::puppetserver_jruby_puppet_ruby_load_path:  \
    ['<PATH1>', '<PATH2>']
  3. Save the file and run: puppet agent -t