From 0c5198125fb2fd785f74c9829bbcdeb57220f7b8 Mon Sep 17 00:00:00 2001 From: Frank Wall Date: Wed, 19 Oct 2022 11:58:49 +0200 Subject: [PATCH] do not try to 'enable' the systemd unit template --- CHANGELOG.md | 1 + manifests/service.pp | 13 +------------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80796e3..8a2a8e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed * Fix failed validation when setting `$cluster=false` +* Do not try to 'enable' the systemd unit template (fails on recent systemd versions) ## [v1.3.0] - 2022-07-27 diff --git a/manifests/service.pp b/manifests/service.pp index 9cdc0e1..d60a626 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -5,7 +5,7 @@ # # @api private class activemq::service { - # Install service file for multi-instance support. + # Install service template file for multi-instance support. file { $activemq::service_file: ensure => file, owner => 'root', @@ -13,15 +13,4 @@ mode => '0644', content => epp($activemq::service_template), } - - # Enable main service. - service { "${activemq::service_name}@": - enable => $activemq::service_enable, - subscribe => [ - Class['activemq::install'], - ], - require => [ - File[$activemq::service_file], - ], - } }