/ansible-role-nfs_server

Kerberized NFS server, powered by Ansible

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Kerberized NFS server

This role provides a means to configure an NFS server that is integrated with FreeIPA/Red Hat IdM.

It will install and configure the following:

  • Kerberos service credentials
  • Exports file
  • Local folders that are exported

Check [defaults/main.yml](the defaults file) for more details about the configuration.

Homedirs

This role can also provide a few scripts that I used in a situation where all Linux users were housed in Active Directory and provided access to Linux systems via a trust.

In this specific scenario there's no clear way to pre-populate the NFS server with all homedirs.

This was addressed by setting up the following:

  • Profile scripts on the NFS server to create any missing homedirs
  • Sudo & HBAC rules on the IPA server to allow users to run these scripts
  • Instructions for users to first log in via SSH to the NFS system in order to create their homedir

The role can set up the scripts I used as well, but they are currently hardcoded to work from /exports/home.

Quota's

This role can configure the NFS server with user/group quota's as well, this makes use of the the xfs_quota program and features commonly found on RHEL-like systems.

It will configure a default quota (if set) and enable the use of quota command on NFS clients.

NOTE: in order to disable a quota for a certain user/group, do not set it to 0, but instead set it to something really big. As the default quota will override any 0-values found.

As with all other quota systems, the local root user is excluded from enforcement.