Skip to content

Commit

Permalink
Fix firewall-cmd --reload command failing the puppet run
Browse files Browse the repository at this point in the history
  • Loading branch information
jschoewe authored and alexjfisher committed Sep 22, 2019
1 parent 61553a6 commit c985d2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@
enable => $service_enable,
}

# firewall-cmd commands won't work if the service is stopped
exec { 'firewalld::reload':
command => 'firewall-cmd --reload',
refreshonly => true,
onlyif => 'firewall-cmd --state',
}

exec { 'firewalld::complete-reload':
Expand Down

0 comments on commit c985d2d

Please sign in to comment.