Skip to content

Commit

Permalink
Fixes #14324 - Restarts foreman-tasks and httpd on ostree enable
Browse files Browse the repository at this point in the history
Enabling ostree functionality requires restart of httpd and foreman-tasks
This code provides that functionality
  • Loading branch information
parthaa committed Mar 22, 2016
1 parent b49ba8d commit c4e7829
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
if $katello::enable_ostree {
package { $katello::rubygem_katello_ostree:
ensure => installed,
notify => Service['foreman-tasks', 'httpd'],
}
}
}
3 changes: 2 additions & 1 deletion spec/classes/katello_install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]{:name=>\"foreman-tasks\"}, Service[httpd]{:name=>\"httpd\"}]') }
end
end

0 comments on commit c4e7829

Please # to comment.