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

Remove group of FW rules #503

Open
DanielTei opened this issue Sep 1, 2021 · 1 comment
Open

Remove group of FW rules #503

DanielTei opened this issue Sep 1, 2021 · 1 comment
Labels
question The issue is a question.

Comments

@DanielTei
Copy link

Hi everyone,
Just recently started using this module, and I was wondering if there's a way to remove multiple firewall rules that belong to one group.

Been using a simple block to try and do this:

dsc_firewall { 'Remove fw rules':
    dsc_name         => '*',
    dsc_group        => 'examplegroup',
    dsc_ensure       => 'Absent',
  }

That doesn't error out, but doesn't actually remove the rules. Tried escaping the wildcard with a backslash but same thing. Any thoughts?

Thanks in advance,
Daniel

@PlagueHO PlagueHO added the question The issue is a question. label Apr 10, 2022
@PlagueHO
Copy link
Member

Hi @DanielTei - sorry about the very long delay in getting to this. Currently the firewall resource does not support making an entire group of rules absent. You'd have to specify each rule individually and make that absent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question The issue is a question.
Projects
None yet
Development

No branches or pull requests

2 participants