Skip to content

Commit

Permalink
Add CentOS 8/9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Aug 6, 2024
1 parent 325b042 commit 565fb87
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 7 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@
"8"
]
},
{
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"8",
"9"
]
},
{
"operatingsystem": "Gentoo",
"operatingsystemrelease": [
Expand Down
9 changes: 6 additions & 3 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,18 @@
client_packages = %w[nfs-common nfs4-acl-tools rpcbind]

when 'RedHat'
case fact('os.release.major')
when '6'
case fact('os.release.major').to_i
when 6
# server_service = 'nfs'
server_servicehelpers = %w[rpcidmapd rpcbind]
client_services = %w[rpcbind]
when '7'
when 7
# server_service = 'nfs-server.service'
server_servicehelpers = %w[nfs-idmap.service]
client_services = %w[rpcbind.service rpcbind.socket]
when >= 8

Check failure on line 40 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Lint/Syntax: unexpected token tGEQ (Using Ruby 2.6 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
server_servicehelpers = %w[nfs-idmapd.service]
client_services = %w[rpcbind.service rpcbind.socket]
end
server_packages = %w[nfs-utils nfs4-acl-tools rpcbind]
client_packages = %w[nfs-utils nfs4-acl-tools rpcbind]
Expand Down

0 comments on commit 565fb87

Please sign in to comment.