--- ext/config/conf.d/puppetserver.conf.orig	2021-03-12 18:01:54 UTC
+++ ext/config/conf.d/puppetserver.conf
@@ -2,16 +2,20 @@
 jruby-puppet: {
     # Where the puppet-agent dependency places puppet, facter, etc...
     # Puppet server expects to load Puppet from this location
-    ruby-load-path: [/opt/puppetlabs/puppet/lib/ruby/vendor_ruby]
+    ruby-load-path: [
+        %%PREFIX%%/share/puppetserver/lib,
+        %%RUBY_SITELIBDIR%%,
+        %%PREFIX%%/lib/ruby/vendor_ruby,
+    ]
 
     # This setting determines where JRuby will install gems.  It is used for loading gems,
     # and also by the `puppetserver gem` command line tool.
-    gem-home: /opt/puppetlabs/server/data/puppetserver/jruby-gems
+    gem-home: /var/puppet/server/data/puppetserver/jruby-gems
 
     # This setting defines the complete "GEM_PATH" for jruby.  If set, it should include
     # the gem-home directory as well as any other directories that gems can be loaded
     # from (including the vendored gems directory for gems that ship with puppetserver)
-    gem-path: [${jruby-puppet.gem-home}, "/opt/puppetlabs/server/data/puppetserver/vendored-jruby-gems", "/opt/puppetlabs/puppet/lib/ruby/vendor_gems"]
+    gem-path: [${jruby-puppet.gem-home}, "/var/puppet/server/data/puppetserver/vendored-jruby-gems", "%%PREFIX%%/lib/ruby/gems/%%RUBY_VER%%"]
 
     # PLEASE NOTE: Use caution when modifying the below settings. Modifying
     # these settings will change the value of the corresponding Puppet settings
@@ -26,23 +30,23 @@ jruby-puppet: {
 
     # (optional) path to puppet conf dir; if not specified, will use
     # /etc/puppetlabs/puppet
-    server-conf-dir: /etc/puppetlabs/puppet
+    server-conf-dir: %%PREFIX%%/etc/puppet
 
     # (optional) path to puppet code dir; if not specified, will use
     # /etc/puppetlabs/code
-    server-code-dir: /etc/puppetlabs/code
+    server-code-dir: %%PREFIX%%/etc/puppet/code
 
     # (optional) path to puppet var dir; if not specified, will use
     # /opt/puppetlabs/server/data/puppetserver
-    server-var-dir: /opt/puppetlabs/server/data/puppetserver
+    server-var-dir: /var/puppet/server/data/puppetserver
 
     # (optional) path to puppet run dir; if not specified, will use
     # /var/run/puppetlabs/puppetserver
-    server-run-dir: /var/run/puppetlabs/puppetserver
+    server-run-dir: /var/run/puppetserver
 
     # (optional) path to puppet log dir; if not specified, will use
     # /var/log/puppetlabs/puppetserver
-    server-log-dir: /var/log/puppetlabs/puppetserver
+    server-log-dir: /var/log/puppetserver
 
     # (optional) maximum number of JRuby instances to allow
     #max-active-instances: 1
