Puppet module to manage NFS client and server
- Mange NFS server
- Setup of exports
- Mange idmapd
- Setup of configuration for idmapd
This module has been tested to work on the following systems with Puppet v3 and Ruby 1.8.7, 1.9.3, and 2.0.0.
- Debian 6 (client only)
- EL 5
- EL 6
- Solaris 10
- Suse 10
- Suse 11
- Ubuntu 12.04 LTS
===
Boolean to use hiera_hash which merges all found instances of nfs::mounts in Hiera. This is useful for specifying mounts at different levels of the hierarchy and having them all included in the catalog. This will default to true
in future versions.
- Default: false
Name of the NFS package
- Default: Uses system defaults as specified in module
Name of the NFS service
- Default: Uses system defaults as specified in module
Hash of mounts to be mounted on system. See below.
- Default: undef
===
The location of the config file.
- Default: /etc/exports
The owner of the config file.
- Default: root
The group for the config file.
- Default: root
The mode for the config file.
- Default: 0644
===
String of the idmap package name.
- Default: Os specific
The location of the config file.
- Default: /etc/idmapd.conf
The owner of the config file.
- Default: root
The group for the config file.
- Default: root
The mode for the config file.
- Default: 0644
String of the service name.
- Default: rpcidmapd
Boolean value of enable parameter for idmapd service.
- Default: true
Boolean value of hasstatus parameter for idmapd service.
- Default: true
Boolean value of hasrestart parameter for idmapd service.
- Default: true
String value of domain to be set as local NFS domain.
- Default: $::domain
String value of ldap server name.
- Default: UNSET
String value of ldap search base.
- Default: UNSET
String or array of local kerberos realm names.
- Default: $::domain
String or array of mapping method to be used between NFS and local IDs. Valid values is nsswitch, umich_ldap or static
- Default: nsswitch
String of local user name to be used when a mapping cannot be completed.
- Default: nobody
String of local group name to be used when a mapping cannot be completed.
- Default: nobody
Integer of verbosity level.
- Default: 0
String of the directory for rpc_pipefs.
- Default: OS specific
===
This works by passing the nfs::mounts hash to the create_resources() function. Thus, you can provide any valid parameter for mount. See the Type Reference for a complete list.
Mount nfs.example.com:/vol1 on /mnt/vol1 and nfs.example.com:/vol2 on /mnt/vol2
nfs::mounts: /mnt/vol1: ensure: present device: nfs.example.com:/vol1 options: rw,rsize=8192,wsize=8192 fstype: nfs old_log_file_mount: name: /mnt/vol2 ensure: present device: nfs.example.com:/vol2 fstype: nfs
This module contains ext/fstabnfs2yaml.rb
, which is a script that will parse /etc/fstab
and print out the nfs::mounts hash in YAML with which you can copy/paste into Hiera.