Skip to content

Commit

Permalink
Fixed idempotency bug relating to MODULES-1984
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnytdevops committed May 5, 2015
1 parent dc44744 commit 4f7e567
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions manifests/linux/redhat.pp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@
if ($::operatingsystem != 'Amazon')
and (($::operatingsystem != 'Fedora' and versioncmp($::operatingsystemrelease, '7.0') >= 0)
or ($::operatingsystem == 'Fedora' and versioncmp($::operatingsystemrelease, '15') >= 0)) {
exec { '/usr/bin/systemctl daemon-reload':
require => Package[$package_name],
if $ensure == 'running' {
exec { '/usr/bin/systemctl daemon-reload':
require => Package[$package_name],
before => Service[$service_name],
unless => '/usr/bin/systemctl is-active iptables'
}
}
}

Expand Down

0 comments on commit 4f7e567

Please sign in to comment.