Skip to content

Commit 01366a6

Browse files
treydockmichael-riddlesilug
authored
(SIMP-10743) Support stdlib 9.x (#101)
* (SIMP-10743) Support stdlib 9.x Replace legacy Integer with proper Integer to support stdlib 9 Fixes #96 * Bump version * Bump version to 6.8.0 * Add CHANGELOG entry * Add backwards compatibility for `verbose` parameter * Update REFERENCE.md --------- Co-authored-by: Mike Riddle <michael.riddle@onyxpoint.com> Co-authored-by: Steven Pritchard <steve@sicura.us>
1 parent 29457e0 commit 01366a6

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
* Fri Jul 28 2023 Trey Dockendorf <tdockendorf@box.com> - 6.8.0
2+
- Support stdlib 9.x
3+
14
* Mon Jul 24 2023 Chris Tessmer <chris.tessmer@onyxpoint.com> - 6.7.0
25
- Add RockyLinux 8 support
36

REFERENCE.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,18 @@ Default value: `'yes'`
105105

106106
##### <a name="-aide--verbose"></a>`verbose`
107107

108-
Data type: `Stdlib::Compat::Integer`
108+
Data type:
109+
110+
```puppet
111+
Variant[
112+
Integer[0, 255],
113+
Pattern[/\A(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\z/]
114+
]
115+
```
109116

110117
The verbosity of the output messages.
111118

112-
Default value: `'5'`
119+
Default value: `5`
113120

114121
##### <a name="-aide--report_urls"></a>`report_urls`
115122

@@ -298,7 +305,7 @@ Data type: `Integer`
298305

299306
Maximum time to wait in seconds for AIDE database initialization
300307

301-
Default value: `$facts['processorcount'] ? { 1 => 1200, default => 300`
308+
Default value: `$facts['processors']['count'] ? { 1 => 1200, default => 300`
302309

303310
##### <a name="-aide--package_ensure"></a>`package_ensure`
304311

manifests/init.pp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@
121121
String $database_name = 'aide.db.gz',
122122
String $database_out_name = 'aide.db.new.gz',
123123
Variant[Enum['yes','no'],Boolean] $gzip_dbout = 'yes',
124-
Stdlib::Compat::Integer $verbose = '5',
124+
Variant[
125+
Integer[0, 255],
126+
Pattern[/\A(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\z/]
127+
] $verbose = 5,
125128
Array[String] $report_urls = [ 'file:@@{LOGDIR}/aide.report'],
126129
Stdlib::Absolutepath $ruledir = '/etc/aide.conf.d',
127130
Variant[Hash,Array[String]] $rules = {},

metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simp-aide",
3-
"version": "6.7.0",
3+
"version": "6.8.0",
44
"author": "SIMP Team",
55
"summary": "manages AIDE",
66
"license": "Apache-2.0",
@@ -22,7 +22,7 @@
2222
},
2323
{
2424
"name": "puppetlabs/stdlib",
25-
"version_requirement": ">= 8.0.0 < 9.0.0"
25+
"version_requirement": ">= 8.0.0 < 10.0.0"
2626
},
2727
{
2828
"name": "puppetlabs/concat",

0 commit comments

Comments
 (0)