Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CentOS 8/9 support #200

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{

Check warning on line 1 in metadata.json

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Skipping EOL operating system Debian 10

Check warning on line 1 in metadata.json

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Skipping EOL operating system RedHat 7

Check warning on line 1 in metadata.json

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Skipping EOL operating system CentOS 8
"name": "puppet-nfs",
"version": "2.1.11",
"source": "https://github.com/voxpupuli/puppet-nfs.git",
Expand Down 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