Skip to content

Commit

Permalink
Support new non-AIO puppetserver Debian package
Browse files Browse the repository at this point in the history
The upcoming release of Debian will ship with a new non-AIO puppetserver
package, and these configuration tweaks are needed to make the module
compatible with it.
  • Loading branch information
jcharaoui committed May 6, 2023
1 parent 44d7291 commit f09003f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
21 changes: 15 additions & 6 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,21 @@
$vardir = '/var/lib/puppet'
$sharedir = '/usr/share/puppet'
$bindir = '/usr/bin'
$server_puppetserver_dir = '/etc/puppetserver'
$server_puppetserver_vardir = $vardir
$server_puppetserver_rundir = undef
$server_puppetserver_logdir = undef
$server_ruby_load_paths = []
$server_jruby_gem_home = '/var/lib/puppet/jruby-gems'
if $facts['os']['family'] == 'Debian' {
$server_puppetserver_dir = '/etc/puppet/puppetserver'
$server_puppetserver_vardir = '/var/lib/puppetserver'
$server_puppetserver_rundir = '/run/puppetserver'
$server_puppetserver_logdir = '/var/log/puppetserver'
$server_ruby_load_paths = ['/usr/lib/puppetserver/ruby/vendor_ruby']
$server_jruby_gem_home = '/var/lib/puppetserver/jruby-gems'
} else {
$server_puppetserver_dir = '/etc/puppetserver'
$server_puppetserver_vardir = $vardir
$server_puppetserver_rundir = undef
$server_puppetserver_logdir = undef
$server_ruby_load_paths = []
$server_jruby_gem_home = '/var/lib/puppet/jruby-gems'
}
}
$root_group = undef
$puppetconf_mode = '0644'
Expand Down
2 changes: 2 additions & 0 deletions manifests/server/puppetserver.pp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@
context => '/files/etc/rc.conf',
changes => ["set puppetserver_java_opts '\"${jvm_cmd}\"'"],
}
} elsif $facts['os']['family'] == 'Debian' and !$puppet::params::aio_package {
$server_gem_paths = ['${jruby-puppet.gem-home}', '/usr/lib/puppetserver/vendored-jruby-gems'] # lint:ignore:single_quote_string_with_variables
} else {
if $jvm_cli_args {
$changes = [
Expand Down

0 comments on commit f09003f

Please sign in to comment.