Skip to content

Commit

Permalink
Add support for PE
Browse files Browse the repository at this point in the history
This enables user to run foreman-proxy on a Puppet Enterprise primary.
  • Loading branch information
bastelfreak committed Nov 4, 2024
1 parent 907200b commit fa5864c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@
Foreman_proxy::ListenOn $puppetca_listen_on = 'https',
Stdlib::Absolutepath $ssldir = $foreman_proxy::params::ssldir,
Stdlib::Absolutepath $puppetdir = $foreman_proxy::params::puppetdir,
String $puppet_group = 'puppet',
String $puppet_group = $foreman_proxy::params::puppet_group,
String $puppetca_provider = 'puppetca_hostname_whitelisting',
Stdlib::Absolutepath $autosignfile = $foreman_proxy::params::autosignfile,
Boolean $puppetca_sign_all = false,
Expand Down
7 changes: 7 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,11 @@
# shares cached_data with the foreman module so they're the same
$oauth_consumer_key = extlib::cache_data('foreman_cache_data', 'oauth_consumer_key', extlib::random_password(32))
$oauth_consumer_secret = extlib::cache_data('foreman_cache_data', 'oauth_consumer_secret', extlib::random_password(32))

# PE uses a different user/group compared to open source puppet
# the is_pe fact exists in PE and in stdlib. It can be true/false/undef (undef means open source)
$puppet_group = $facts['is_pe'] ? {
true => 'pe-puppet',
default => 'puppet'
}
}

0 comments on commit fa5864c

Please sign in to comment.