-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(SIMP-2971) Add $package_ensure (#11)
SIMP-2971 #comment update chkrootkit
- Loading branch information
1 parent
fab05d9
commit 7ce9764
Showing
8 changed files
with
26 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
fixtures: | ||
repositories: | ||
stdlib: "https://github.com/puppetlabs/puppetlabs-stdlib.git" | ||
simplib: "https://github.com/simp/pupmod-simp-simplib.git" | ||
stdlib: https://github.com/puppetlabs/puppetlabs-stdlib.git | ||
simplib: https://github.com/simp/pupmod-simp-simplib.git | ||
symlinks: | ||
chkrootkit: "#{source_dir}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
* Fri Sep 07 2018 Liz Nemsick <[email protected]> - 0.0.3-0 | ||
* Thu Oct 11 2018 Nick Miller <[email protected]> - 0.1.0-0 | ||
- Added $package_ensure parameter | ||
- Changed the package from 'latest' to 'installed' | ||
- It will also respect `simp_options::package_ensure` | ||
|
||
* Fri Sep 07 2018 Liz Nemsick <[email protected]> - 0.1.0-0 | ||
- Drop Hiera 4 support | ||
|
||
* Sat Mar 17 2018 Trevor Vaughan <[email protected]> - 0.0.3-0 | ||
* Sat Mar 17 2018 Trevor Vaughan <[email protected]> - 0.1.0-0 | ||
- Added OEL and Puppet 5 support | ||
|
||
* Thu Jul 06 2017 Liz Nemsick <[email protected]> - 0.0.2-0 | ||
|
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,16 +14,19 @@ | |
# Set to local6.notice, any other syslog destination to forward to syslog. | ||
# Worthless if $syslog is false. | ||
# | ||
# @author Trevor Vaughan <[email protected]> | ||
# @param package_ensure The ensure status of packages to be managed | ||
# | ||
# @author https://github.com/simp/pupmod-simp-chkrootkit/graphs/contributors | ||
# | ||
class chkrootkit ( | ||
Boolean $syslog = lookup('simp_options::syslog', { 'default_value' => false }), | ||
String $log_dest = 'local6.notice', | ||
String $minute = '0', | ||
String $hour = '0', | ||
String $monthday = '*', | ||
String $month = '*', | ||
String $weekday = '0' | ||
String $log_dest = 'local6.notice', | ||
String $minute = '0', | ||
String $hour = '0', | ||
String $monthday = '*', | ||
String $month = '*', | ||
String $weekday = '0', | ||
Boolean $syslog = simplib::lookup('simp_options::syslog', { 'default_value' => false }), | ||
String $package_ensure = simplib::lookup('simp_options::package_ensure', { 'default_value' => 'installed' }), | ||
) { | ||
|
||
if $syslog { | ||
|
@@ -34,7 +37,7 @@ | |
} | ||
|
||
package { 'chkrootkit': | ||
ensure => 'latest' | ||
ensure => $package_ensure | ||
} | ||
|
||
cron { 'chkrootkit': | ||
|
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