From b8970e9c7652bfda98a7582a7ed4e99e60bcd7c2 Mon Sep 17 00:00:00 2001 From: Partha Aji Date: Tue, 22 Mar 2016 18:45:06 -0400 Subject: [PATCH] Fixes #14324 - Restarts foreman-tasks and httpd on ostree enable Enabling ostree functionality requires restart of httpd and foreman-tasks This code provides that functionality --- manifests/install.pp | 1 + spec/classes/katello_install_spec.rb | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/manifests/install.pp b/manifests/install.pp index 2922acb1..ebb295cb 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -7,6 +7,7 @@ if $katello::enable_ostree { package { $katello::rubygem_katello_ostree: ensure => installed, + notify => Service['foreman-tasks', 'httpd'], } } } diff --git a/spec/classes/katello_install_spec.rb b/spec/classes/katello_install_spec.rb index 5c841125..1ff734e1 100644 --- a/spec/classes/katello_install_spec.rb +++ b/spec/classes/katello_install_spec.rb @@ -33,6 +33,7 @@ }" ] end - it { should contain_package("tfm-rubygem-katello_ostree").with_ensure('installed') } + it { should contain_package("tfm-rubygem-katello_ostree").with_ensure('installed'). + with_notify(["Service[foreman-tasks]", "Service[httpd]"]) } end end