Skip to content

Commit

Permalink
Add CentOS/RHEL 9 support
Browse files Browse the repository at this point in the history
Add CentOS/RHEL 9 support. Without this change puppet-systemd will
likely fail with the following error:

    Evaluation Error: Error while evaluating a Function Call, Class[Systemd]:
    expects a value for parameter 'accounting'
    (file: /etc/puppet/modules/systemd/manifests/service_limits.pp, line: 40, column: 3)

Tested on Centos 9 Stream.

Signed-off-by: Michele Baldessari <michele@acksyn.org>
  • Loading branch information
mbaldessari committed Sep 9, 2021
1 parent 2ef9d94 commit 1698451
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions data/RedHat-9.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
systemd::accounting:
DefaultCPUAccounting: 'yes'
DefaultBlockIOAccounting: 'yes'
DefaultMemoryAccounting: 'yes'
DefaultTasksAccounting: 'yes'
DefaultIOAccounting: 'yes'
DefaultIPAccounting: 'yes'
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"7",
"8"
"8",
"9"
]
},
{
Expand Down

0 comments on commit 1698451

Please sign in to comment.