]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commit
only reload systemd on package changes
authorAron Parsons <aron@knackworks.com>
Fri, 21 Apr 2017 01:20:14 +0000 (21:20 -0400)
committerAron Parsons <aron@knackworks.com>
Fri, 21 Apr 2017 01:33:09 +0000 (21:33 -0400)
commit5d3c59f6eb447e9da0d16f720f492a084ca5add5
tree69d410824363b47fe76d0cc2ab805389ba574091
parent24ca3df9eee50a6150c2f5a854bb2c7545979646
only reload systemd on package changes

it has been observed on systems that
the "systemctl is-active" check can
return non-zero status when checking
the status of iptables and ip6tables
at the same time.  this causes idempotent
issues when ip6tables is disabled.

systemd should not be blindly reloaded if
there are units not active.  it should only
be reloaded if the unit files on disk change.
this only occurs at package installation time,
so the Exec resource should only be refreshed
if the package changes.

there are no other resources in this module
that manipulate the unit files other than the
Package resource.
manifests/linux/redhat.pp