-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various refactoring to improve code readability
Hopefully some of the logic in (especially) `init.pp` is less complicated. It should now also be possible to split `init.pp` into the `package -> config ~> service` pattern if someone wants to take on that work. * Replace `if != and !=` with `unless == or ==` * Replace `$snmptrapd_conf_notify` with `subscribes` * Refactor `snmpv3_user` by replacing `require` with `before` * Remove duplication of identical `Service['snmptrapd']` resources * Remove some redundant relationships and reorder resources in init.pp * Refactor client.pp * Don't use absolute class names * Use proper relationship matchers in tests * Replace Exec with File resource for `/etc/init.d/snmptrapd` on Suse
- Loading branch information
1 parent
3aab4f4
commit b8a81fc
Showing
7 changed files
with
139 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.