add NFS example for mountpoint definitions

This commit is contained in:
2023-04-12 11:06:01 +02:00
parent 69faee39da
commit 6758fd60e1

View File

@@ -157,20 +157,47 @@ add the ``auto`` parameter::
Supposedly this is a scratch mount, so we exclude the whole mount both from
backups and from updatedb.
Remote Mount
~~~~~~~~~~~~
Remote CIFS mountpoint can be defined as follows::
NFS Mount
~~~~~~~~~
Remote NFS mountpoints can be defined as follows::
mounter::def::controls:
'ensure': 'running'
'enable': true
'device': 'sls-hafs:/export/sls/controls'
'mountpoint': '/gfa/.mounts/sls_controls'
'type': 'nfs'
mounter::def::data1:
'ensure': 'running'
'enable': true
'device': 'x01dc-fs-1:/export/X01DC/Data1'
'mountpoint': '/sls/X01DC/Data1'
'type': 'nfs'
'options': 'soft,nfsvers=4,tcp,bg'
mounter::mounts:
- 'controls'
- 'data1'
CIFS Mount
~~~~~~~~~~
Remote CIFS mountpoints can be defined as follows::
mounter::cifs::def::cifs_mpc2375:
ensure: 'present'
path: '/etc/cifs-utils'
cifs_username: 'allowedWindowsUser'
cifs_password: 'ENC[PKCS7,MIIBeQYJKoZIhvc...]'
mounter::cifs::files:
- 'cifs_mpc2375'
mounter::def::emf:
ensure: 'running'
enable: 'true'
@@ -178,7 +205,7 @@ Remote CIFS mountpoint can be defined as follows::
mountpoint: '/emf/jeol2200fs/k2'
type: 'cifs'
options: 'credentials=/etc/cifs-utils/cifs_mpc2375,uid=35667,gid=35270,forcegid,file_mode=0660,dir_mode=0770'
mounter::mounts:
- 'emf'