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

Draft: Migration from params to hiera data #194

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
9 changes: 9 additions & 0 deletions data/common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
nfs::client_nfs_fstype: 'nfs'
nfs::client_services_hasrestart: true
nfs::client_services_hasstatus: true
nfs::client_gssd_options: ''
nfs::server_service_hasrestart: true
nfs::server_service_hasstatus: true
nfs::server_service_restart_cmd: ~

27 changes: 27 additions & 0 deletions data/os/Archlinux.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
nfs::exports_file: '/etc/exports'
nfs::idmapd_file: '/etc/idmapd.conf'
nfs::defaults_file: ~
nfs::server_packages:
- 'nfs-utils'
nfs::client_packages:
- 'nfs-utils'
- 'nfsidmap'
- 'rpcbind'
nfs::client_rpcbind_config: ~

$nfs_v4_idmap_nobody_user = 'nobody'
$nfs_v4_idmap_nobody_group = 'nobody'
$client_rpcbind_optname = 'RPCNFSDARGS'
$client_gssdopt_name = 'RPCGSSDARGS'
$client_idmapd_setting = ['']
$client_nfs_options = 'tcp,nolock,rsize=32768,wsize=32768,intr,noatime,nfsvers=3,actimeo=3'
$client_services_enable = true
$client_services = { 'rpcbind' => {} }
$client_gssd_service_name = undef
$client_nfsv4_fstype = 'nfs4'
$client_nfsv4_options = 'tcp,nolock,rsize=32768,wsize=32768,intr,noatime,nfsvers=4,actimeo=3'
$client_nfsv4_services = { 'rpcbind' => {} }
$server_nfsv4_servicehelper = ['nfs-idmapd']
$server_service_name = 'nfs-server.service'

38 changes: 38 additions & 0 deletions data/os/Debian.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
nfs::exports_file: '/etc/exports'
nfs::idmapd_file: '/etc/idmapd.conf'
nfs::defaults_file: '/etc/default/nfs-common'
nfs::server_packages:
- 'nfs-common'
- 'nfs-kernel-server'
- 'nfs4-acl-tools'
- 'rpcbind'
nfs::client_packages:
- 'nfs-common'
- 'nfs4-acl-tools'
- 'rpcbind'
nfs::client_rpcbind_config: '/etc/default/rpcbind'

nfs::client_idmapd_setting:
- 'set NEED_IDMAPD yes'
nfs::client_nfs_options: 'tcp,nolock,rsize:32768,wsize:32768,intr,noatime,nfsvers:3,actimeo:3'
nfs::client_services_enable: true
nfs::client_nfsv4_fstype: 'nfs4'
nfs::client_nfsv4_options: 'tcp,nolock,rsize:32768,wsize:32768,intr,noatime,actimeo:3'
nfs::nfs_v4_idmap_nobody_user: 'nobody'
nfs::nfs_v4_idmap_nobody_group: 'nogroup'
nfs::client_rpcbind_optname: 'OPTIONS'

nfs::client_services:
'rpcbind': {}
nfs::client_gssd_service_name:
'rpc-gssd':
ensure: 'running'
enable: true
nfs::client_nfsv4_services:
'rpcbind': {}
nfs::server_nfsv4_servicehelper:
- 'idmapd'
nfs::server_service_name: 'nfs-kernel-server'
nfs::client_gssdopt_name: 'GSSDARGS'

18 changes: 18 additions & 0 deletions data/os/Debian/10.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
nfs::client_services:
'rpcbind':
ensure: 'running'
enable: false
nfs::client_gssd_service_name:
'rpc-gssd':
ensure: 'running'
enable: true
nfs::client_nfsv4_services:
'rpcbind':
ensure: 'running'
enable: false,
nfs::server_nfsv4_servicehelper:
- 'nfs-idmapd'
nfs::server_service_name: 'nfs-kernel-server'
nfs::client_gssdopt_name: 'GSSDARGS'

18 changes: 18 additions & 0 deletions data/os/Debian/11.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
nfs::client_services:
'rpcbind':
ensure: 'running'
enable: false
nfs::client_gssd_service_name:
'rpc-gssd':
ensure: 'running'
enable: true
nfs::client_nfsv4_services:
'rpcbind':
ensure: 'running'
enable: false,
nfs::server_nfsv4_servicehelper:
- 'nfs-idmapd'
nfs::server_service_name: 'nfs-kernel-server'
nfs::client_gssdopt_name: 'GSSDARGS'

13 changes: 13 additions & 0 deletions data/os/Debian/7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
nfs::client_services:
'rpcbind': {}
nfs::client_nfsv4_services:
'rpcbind': {}
'nfs-common':
require: "Service['rpcbind']"
nfs::client_gssd_service_name: ~
nfs::server_nfsv4_servicehelper:
- 'nfs-common'
nfs::server_service_name: 'nfs-kernel-server'
nfs::client_gssdopt_name: 'RPCGSSDOPTS'

13 changes: 13 additions & 0 deletions data/os/Debian/8.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
nfs::client_services:
'rpcbind': {}
nfs::client_nfsv4_services:
'rpcbind': {}
'nfs-common':
require: "Service['rpcbind']"
nfs::client_gssd_service_name: ~
nfs::server_nfsv4_servicehelper:
- 'nfs-common'
nfs::server_service_name: 'nfs-kernel-server'
nfs::client_gssdopt_name: 'RPCGSSDOPTS'

18 changes: 18 additions & 0 deletions data/os/Debian/9.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
nfs::client_services:
'rpcbind':
ensure: 'running'
enable: false
nfs::client_gssd_service_name:
'rpc-gssd':
ensure: 'running'
enable: true
nfs::client_nfsv4_services:
'rpcbind':
ensure: 'running'
enable: false,
nfs::server_nfsv4_servicehelper:
- 'nfs-idmapd'
nfs::server_service_name: 'nfs-kernel-server'
nfs::client_gssdopt_name: 'GSSDARGS'

34 changes: 34 additions & 0 deletions data/os/Gentoo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
nfs::exports_file: '/etc/exports'
nfs::idmapd_file: '/etc/idmapd.conf'
nfs::defaults_file: '/etc/conf.d/nfs'
nfs::server_packages:
- 'net-nds/rpcbind'
- 'net-fs/nfs-utils'
- 'net-libs/libnfsidmap'
nfs::client_packages:
- 'net-nds/rpcbind'
- 'net-fs/nfs-utils'
- 'net-libs/libnfsidmap'
nfs::client_rpcbind_config: ~

nfs::nfs_v4_idmap_nobody_user: 'nobody'
nfs::nfs_v4_idmap_nobody_group: 'nogroup'
nfs::client_rpcbind_optname: 'OPTS_RPC_NFSD'
nfs::client_gssdopt_name: 'RPCGSSDARGS'
nfs::client_idmapd_setting:
- 'set NFS_NEEDED_SERVICES rpc.idmapd'
nfs::client_nfs_options: 'tcp,nolock,rsize=32768,wsize=32768,intr,noatime,nfsvers=3,actimeo=3'
nfs::client_services_enable: true
nfs::client_services:
'rpcbind': {}
nfs::client_gssd_service_name: ~
nfs::client_nfsv4_fstype: 'nfs4'
nfs::client_nfsv4_options: 'tcp,nolock,rsize=32768,wsize=32768,intr,noatime,nfsvers=4,actimeo=3'
nfs::client_nfsv4_services:
'rpcbind': {}
'rpc.idmapd': {}
nfs::server_nfsv4_servicehelper:
- 'rpc.idmapd'
nfs::server_service_name: 'nfs'

39 changes: 39 additions & 0 deletions data/os/RedHat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
nfs::exports_file: '/etc/exports'
nfs::idmapd_file: '/etc/idmapd.conf'
nfs::defaults_file: '/etc/sysconfig/nfs'
nfs::server_packages:
- 'nfs-utils'
- 'nfs4-acl-tools'
- 'rpcbind'
nfs::client_packages:
- 'nfs-utils'
- 'nfs4-acl-tools'
- 'rpcbind'
nfs::client_rpcbind_config: '/etc/sysconfig/rpcbind'

nfs::nfs_v4_idmap_nobody_user: 'nobody'
nfs::nfs_v4_idmap_nobody_group: 'nobody'
nfs::client_rpcbind_optname: 'RPCBIND_ARGS'

nfs::client_gssdopt_name: 'RPCGSSDARGS'
nfs::client_idmapd_setting:
- ''
nfs::client_nfs_options: 'tcp,nolock,rsize=32768,wsize=32768,intr,noatime,actimeo=3'
nfs::client_services_enable: true
nfs::client_services:
'rpcbind': {}
nfs::client_gssd_service_name:
'rpc-gssd':
ensure: 'running'
enable: true
nfs::client_nfsv4_fstype: 'nfs4'
nfs::client_nfsv4_options: 'tcp,nolock,rsize=32768,wsize=32768,intr,noatime,actimeo=3'
nfs::client_nfsv4_services:
'rpcbind': {}
'rpcidmapd': {}
nfs::server_nfsv4_servicehelper:
- 'rpcidmapd'
- 'rpcbind'
nfs::server_service_name: 'nfs'

22 changes: 22 additions & 0 deletions data/os/RedHat/7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
nfs::client_idmapd_setting:
- ''
nfs::client_nfs_options: 'tcp,nolock,rsize=32768,wsize=32768,intr,noatime,nfsvers=3,actimeo=3'
nfs::client_services_enable: true
nfs::client_gssdopt_name: 'RPCGSSDARGS'
nfs::client_services:
'rpcbind.service': {}

client_gssd_service_name:
'rpc-gssd':
ensure: 'running'
enable: true
$client_nfsv4_fstype: 'nfs4'
$client_nfsv4_options: 'tcp,nolock,rsize=32768,wsize=32768,intr,noatime,actimeo=3'

client_nfsv4_services:
'rpcbind': {}
server_nfsv4_servicehelper:
- 'nfs-idmap.service'
server_service_name: 'nfs-server.service'

20 changes: 20 additions & 0 deletions data/os/RedHat/8.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
nfs::client_idmapd_setting:
- ''
nfs::client_nfs_options: 'tcp,nolock,rsize=32768,wsize=32768,intr,noatime,actimeo=3'
nfs::client_services_enable: true
nfs::client_gssdopt_name: 'RPCGSSDARGS'
nfs::client_services:
'rpcbind.service': {}
nfs::client_gssd_service_name:
'rpc-gssd':
ensure: 'running'
enable: true
nfs::client_nfsv4_fstype: 'nfs4'
nfs::client_nfsv4_options: 'tcp,nolock,rsize=32768,wsize=32768,intr,noatime,actimeo=3'
nfs::client_nfsv4_services:
'rpcbind': {}
nfs::server_nfsv4_servicehelper:
- 'nfs-idmapd.service'
nfs::server_service_name: 'nfs-server.service'

20 changes: 20 additions & 0 deletions data/os/RedHat/9.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
client_idmapd_setting:
- ''
client_nfs_options: 'tcp,nolock,rsize=32768,wsize=32768,intr,noatime,actimeo=3'
client_services_enable: true
client_gssdopt_name: 'RPCGSSDARGS'
client_services:
'rpcbind.service': {}
client_gssd_service_name:
'rpc-gssd':
ensure: 'running'
enable: true
client_nfsv4_fstype: 'nfs4'
client_nfsv4_options: 'tcp,nolock,rsize=32768,wsize=32768,intr,noatime,actimeo=3'
client_nfsv4_services:
'rpcbind': {}
server_nfsv4_servicehelper:
- 'nfs-idmapd.service'
server_service_name: 'nfs-server.service'

34 changes: 34 additions & 0 deletions data/os/Suse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
nfs::exports_file: '/etc/exports'
nfs::idmapd_file: '/etc/idmapd.conf'
nfs::defaults_file: ~
nfs::server_packages:
- 'nfs-kernel-server'
nfs::client_packages:
- 'nfs-client'
- 'nfsidmap'
- 'rpcbind'
nfs::client_rpcbind_config: ~

$nfs_v4_idmap_nobody_user: 'nobody'
$nfs_v4_idmap_nobody_group: 'nobody'
$client_rpcbind_optname: 'RPCNFSDARGS'
$client_gssdopt_name: 'GSSD_OPTIONS'
$client_idmapd_setting:
- ''
$client_nfs_options: 'tcp,nolock,rsize=32768,wsize=32768,intr,noatime,nfsvers=3,actimeo=3'
$client_services_enable: true
$client_services:
'rpcbind':
before: "Service['nfs']"
'nfs': {}
$client_gssd_service_name: ~
$client_nfsv4_fstype: 'nfs4'
$client_nfsv4_options: 'tcp,nolock,rsize=32768,wsize=32768,intr,noatime,nfsvers=4,actimeo=3'
$client_nfsv4_services:
'rpcbind':
before: "Service['nfs']"
'nfs': {}
$server_nfsv4_servicehelper: ~
$server_service_name: 'nfsserver'

12 changes: 12 additions & 0 deletions data/os/Ubuntu/14.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
nfs::client_services:
'rpcbind': {}
nfs::client_nfsv4_services:
'rpcbind': {}
'nfs-common':
require: "Service['rpcbind']"
nfs::client_gssd_service_name: ~
nfs::server_nfsv4_servicehelper: ~
nfs::server_service_name: 'nfs-kernel-server'
nfs::client_gssdopt_name: 'RPCGSSDOPTS'

18 changes: 18 additions & 0 deletions data/os/Ubuntu/16.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
nfs::client_services:
'rpcbind':
ensure: 'running'
enable: false
nfs::client_gssd_service_name:
'rpc-gssd':
ensure: 'running'
enable: true
nfs::client_nfsv4_services:
'rpcbind':
ensure: 'running'
enable: false,
nfs::server_nfsv4_servicehelper:
- 'nfs-idmapd'
nfs::server_service_name: 'nfs-kernel-server'
nfs::client_gssdopt_name: 'GSSDARGS'

18 changes: 18 additions & 0 deletions data/os/Ubuntu/17.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
nfs::client_services:
'rpcbind':
ensure: 'running'
enable: false
nfs::client_gssd_service_name:
'rpc-gssd':
ensure: 'running'
enable: true
nfs::client_nfsv4_services:
'rpcbind':
ensure: 'running'
enable: false,
nfs::server_nfsv4_servicehelper:
- 'nfs-idmapd'
nfs::server_service_name: 'nfs-kernel-server'
nfs::client_gssdopt_name: 'GSSDARGS'

Loading
Loading