Skip to content

Commit

Permalink
(SIMP-10743) Support stdlib 9.x (#101)
Browse files Browse the repository at this point in the history
* (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 <[email protected]>
Co-authored-by: Steven Pritchard <[email protected]>
  • Loading branch information
3 people authored Aug 29, 2023
1 parent 29457e0 commit 01366a6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* Fri Jul 28 2023 Trey Dockendorf <[email protected]> - 6.8.0
- Support stdlib 9.x

* Mon Jul 24 2023 Chris Tessmer <[email protected]> - 6.7.0
- Add RockyLinux 8 support

Expand Down
13 changes: 10 additions & 3 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,18 @@ Default value: `'yes'`

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

Data type: `Stdlib::Compat::Integer`
Data type:

```puppet
Variant[
Integer[0, 255],
Pattern[/\A(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\z/]
]
```

The verbosity of the output messages.

Default value: `'5'`
Default value: `5`

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

Expand Down Expand Up @@ -298,7 +305,7 @@ Data type: `Integer`

Maximum time to wait in seconds for AIDE database initialization

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

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

Expand Down
5 changes: 4 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@
String $database_name = 'aide.db.gz',
String $database_out_name = 'aide.db.new.gz',
Variant[Enum['yes','no'],Boolean] $gzip_dbout = 'yes',
Stdlib::Compat::Integer $verbose = '5',
Variant[
Integer[0, 255],
Pattern[/\A(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\z/]
] $verbose = 5,
Array[String] $report_urls = [ 'file:@@{LOGDIR}/aide.report'],
Stdlib::Absolutepath $ruledir = '/etc/aide.conf.d',
Variant[Hash,Array[String]] $rules = {},
Expand Down
4 changes: 2 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simp-aide",
"version": "6.7.0",
"version": "6.8.0",
"author": "SIMP Team",
"summary": "manages AIDE",
"license": "Apache-2.0",
Expand All @@ -22,7 +22,7 @@
},
{
"name": "puppetlabs/stdlib",
"version_requirement": ">= 8.0.0 < 9.0.0"
"version_requirement": ">= 8.0.0 < 10.0.0"
},
{
"name": "puppetlabs/concat",
Expand Down

0 comments on commit 01366a6

Please sign in to comment.