Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Add an ensure parameter to ufw::allow #49

Merged
merged 1 commit into from
May 4, 2016
Merged

Add an ensure parameter to ufw::allow #49

merged 1 commit into from
May 4, 2016

Conversation

mcasper
Copy link
Contributor

@mcasper mcasper commented Apr 22, 2016

Adds an ensure parameter to ufw::allow, which currently defaults to
present, and can accept absent. When set to absent, the rule will
get deleted (if it exists) rather than created. Needing to delete a
single rule across several hundred machines is a pain, and this feels
like a good step with rule purging is figured out. This partially
addresses the lack of purging unused rules, though this is a 'manual`
delete rather than an entire purge.

Related to #21

Adds an `ensure` parameter to `ufw::allow`, which currently defaults to
`present`, and can accept `absent`. When set to `absent`, the rule will
get deleted (if it exists) rather than created. Needing to delete a
single rule across several hundred machines is a pain, and this feels
like a good step with rule purging is figured out.  This partially
addresses the lack of purging unused rules, though this is a 'manual`
delete rather than an entire purge.

Related to #21
@mcasper
Copy link
Contributor Author

mcasper commented Apr 22, 2016

Spec failures here should be fixed by #50

@attachmentgenie attachmentgenie merged commit 9fd00af into attachmentgenie:master May 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants