Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check for running firewalld in custom_service::reload #253

Merged
merged 1 commit into from
Feb 12, 2020
Merged

check for running firewalld in custom_service::reload #253

merged 1 commit into from
Feb 12, 2020

Conversation

domfi
Copy link
Contributor

@domfi domfi commented Feb 6, 2020

firewall-cmd --reload won't work if the service is stopped. The exec-resource firewalld::reload has an "onlyif" statement, in firewalld::custom_service::reload-${name} it is missing, so I added it.

Pull Request (PR) description

Added an onlyif condition to firewalld::custom_service::reload to trigger only if firewalld is running. This check is already added in firewalld::reload.

This Pull Request (PR) fixes the following issues

n/a.

firewall-cmd --reload won't work if the service is stopped. The exec-resource firewalld::reload has an "onlyif" statement, in firewalld::custom_service::reload-${name} it is missing, so I added it.
@ghoneycutt
Copy link
Member

@domfi We don't have good tests for this module. Could you perhaps write an acceptance test. Finding someone else to confirm this works for them would also work.

@trevor-vaughan
Copy link
Collaborator

@ghoneycutt Relatively comprehensive acceptance tests are coming. This patch is a correct fix.

@alexjfisher
Copy link
Member

Similar fix as #197.
A spec test wouldn't really add anything so I'm ok merging this now.
Hopefully we'll have better acceptance tests in the future.

@alexjfisher alexjfisher merged commit 09c8d1d into voxpupuli:master Feb 12, 2020
@domfi domfi deleted the check-firewalld-state-on-custom_servicereload branch March 12, 2020 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants