Showing with 20 additions and 5 deletions.
  1. +9 −0 CHANGELOG.md
  2. +4 −0 manifests/init.pp
  3. +5 −3 manifests/service.pp
  4. +2 −2 metadata.json
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## [25.1.0](https://github.com/theforeman/puppet-foreman_proxy/tree/25.1.0) (2023-08-16)

[Full Changelog](https://github.com/theforeman/puppet-foreman_proxy/compare/25.0.0...25.1.0)

**Implemented enhancements:**

- puppetlabs/stdlib: Allow 9.x [\#810](https://github.com/theforeman/puppet-foreman_proxy/pull/810) ([bastelfreak](https://github.com/bastelfreak))
- Add parameter to manage service [\#809](https://github.com/theforeman/puppet-foreman_proxy/pull/809) ([chr1s692](https://github.com/chr1s692))

## [25.0.0](https://github.com/theforeman/puppet-foreman_proxy/tree/25.0.0) (2023-05-16)

[Full Changelog](https://github.com/theforeman/puppet-foreman_proxy/compare/24.2.0...25.0.0)
Expand Down
4 changes: 4 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,13 @@
#
# $registration_url:: URL that hosts will connect to when registering
#
# $manage_service:: control the service, whether it should be started / enabled or not. useful, if the
# service should be managed by a cluster software e.g. corosync / pacemaker
#
class foreman_proxy (
String $version = 'present',
Enum['latest', 'present', 'installed', 'absent'] $ensure_packages_version = 'installed',
Boolean $manage_service = true,
Variant[Array[String], String] $bind_host = ['*'],
Stdlib::Port $http_port = 8000,
Stdlib::Port $ssl_port = 8443,
Expand Down
8 changes: 5 additions & 3 deletions manifests/service.pp
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# @summary Set up the foreman service
# @api private
class foreman_proxy::service {
service { 'foreman-proxy':
ensure => running,
enable => true,
if $foreman_proxy::manage_service {
service { 'foreman-proxy':
ensure => running,
enable => true,
}
}
}
4 changes: 2 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "theforeman-foreman_proxy",
"version": "25.0.0",
"version": "25.1.0",
"author": "theforeman",
"summary": "Foreman Smart Proxy configuration",
"license": "GPL-3.0+",
Expand Down Expand Up @@ -36,7 +36,7 @@
},
{
"name": "puppetlabs/stdlib",
"version_requirement": ">= 4.19.0 < 9.0.0"
"version_requirement": ">= 4.19.0 < 10.0.0"
},
{
"name": "puppet/extlib",
Expand Down