Skip to content

Commit

Permalink
Fixes #30950 - Enable SmartProxy Registration module
Browse files Browse the repository at this point in the history
  • Loading branch information
stejskalleos committed Oct 5, 2020
1 parent 3838f92 commit cf15e0d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@

contain foreman_proxy::module::logs

contain foreman_proxy::module::registration

if $foreman_proxy::puppetca or $foreman_proxy::puppet {
$uses_sudo = $foreman_proxy::puppetca and versioncmp($facts['puppetversion'], '6.0') < 0

Expand Down
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@
Boolean $templates = $foreman_proxy::params::templates,
Foreman_proxy::ListenOn $templates_listen_on = $foreman_proxy::params::templates_listen_on,
Stdlib::HTTPUrl $template_url = $foreman_proxy::params::template_url,
Boolean $registration = $foreman_proxy::params::registration,
Foreman_proxy::ListenOn $registration_listen_on = $foreman_proxy::params::registration_listen_on,
Boolean $logs = $foreman_proxy::params::logs,
Foreman_proxy::ListenOn $logs_listen_on = $foreman_proxy::params::logs_listen_on,
Optional[Boolean] $httpboot = $foreman_proxy::params::httpboot,
Expand Down
17 changes: 17 additions & 0 deletions manifests/module/registration.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# @summary The built in Registration module
#
# @param enabled
# Whether the module is enabled or disabled.
#
# @param listen_on
# Where to listen on.
class foreman_proxy::module::registration (
Boolean $enabled = $foreman_proxy::registration,
Foreman_proxy::ListenOn $listen_on = $foreman_proxy::registration_listen_on,
) {
foreman_proxy::module { 'registration':
enabled => $enabled,
feature => 'Registration',
listen_on => $listen_on,
}
}
3 changes: 3 additions & 0 deletions templates/registration.yml.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
# Enable Registration module
:enabled: <%= @module_enabled %>

0 comments on commit cf15e0d

Please sign in to comment.