Skip to content

Commit

Permalink
Merge pull request #200 from bastelfreak/centos
Browse files Browse the repository at this point in the history
Add CentOS 8/9 support
  • Loading branch information
bastelfreak authored Aug 6, 2024
2 parents 2528132 + 96d6c3c commit 03acd3a
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]
else
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 03acd3a

Please sign in to comment.