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

Convert rule.pp from class to define so we can instantiate it multiple times #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

forgodssake
Copy link

Hi,

With this change you can add specific rules to every case (webserver, database, monitoring, ...) rather than bit lists of nearly the same rules for every role.

@vegetableZucchini
Copy link

Hello hathoward and forgodssake I have 2 questions.
First, @hathoward why would this change not be committed if it's providing a real benefit to the module and thus the Puppet community that consumes on it?
Second, @forgodssake I am confused by the use of $rule_key in the init.pp file and then $title in the rule.pp file. Would you be so kind to provide examples?

Thank you.

@thatrevguy
Copy link
Owner

His PR is probably fine, just have not made time to provide unit and integration tests to properly maintain this module. If I were to commit time to this module again I'd rather contribute it to the official puppet firewall module by adding a windows FW provider that implements/extends their type. Motivation for the above has been lacking due to my professional time now being consumed by Linux based solutions.

@vegetableZucchini
Copy link

Good day @hathoward I appreciate your time to reply. I too wish the official puppet/windows_firewall forge module was better performing however it lacks the basic functionality to maintain and enforce state of the Windows firewall.
Such as:
When you try to enable the firewall, it does not enable all the profiles. ie. the domain profile.
When a rule with the same name already exists, it has no affect. So when you want to change an existing rule, this will not work.
When ensure => absent is used, it gives error and does not work correctly.
So this module is good only to add new rules.

As you mentioned you are very busy, if you do find free time could you provide a simple example of what @forgodssake is doing with $title is it referencing the $title of the hiera manifest name?

Thank you and have a great day!

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

Successfully merging this pull request may close these issues.

None yet

3 participants