Skip to content

Commit

Permalink
Change contain to notify
Browse files Browse the repository at this point in the history
  • Loading branch information
dLobatog committed Aug 25, 2017
1 parent b4e1672 commit 8cc5359
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifests/plugin/ansible.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Installs foreman_ansible plugin
class foreman::plugin::ansible() {
class foreman::plugin::ansible {
include ::foreman::plugin::tasks

foreman::plugin {'ansible':
Expand Down
3 changes: 1 addition & 2 deletions manifests/plugin/remote_execution.pp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Installs foreman_remote_execution plugin
class foreman::plugin::remote_execution(
) {
class foreman::plugin::remote_execution {
include ::foreman::plugin::tasks

foreman::plugin {'remote_execution':
Expand Down
4 changes: 3 additions & 1 deletion manifests/plugin/tasks.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
class foreman::plugin::tasks(
String $package = $::foreman::plugin::tasks::params::package,
) inherits foreman::plugin::tasks::params {
include ::foreman::service::jobs

foreman::plugin { 'tasks':
package => $package,
notify => Class['foreman::service::jobs'],
}
contain ::foreman::service::jobs
}
2 changes: 1 addition & 1 deletion manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
$ssl = $::foreman::ssl,
) {
anchor { ['foreman::service_begin', 'foreman::service_end']: }
include ::foreman::service::jobs
contain ::foreman::service::jobs

if $passenger {
exec {'restart_foreman':
Expand Down

0 comments on commit 8cc5359

Please sign in to comment.