grycap.nfs

License CI

NFS Server/Client Role

This role sets up an NFS server/client (a recipe for EC3).

Role Variables

Here are the variables you can use with this role, along with a short description:

  • nfs_mode: Type of node to install (options: front or wn). Default is 'front'.
  • nfs_exports: Directories to share (this will be added to the /etc/exports file).
  • nfs_client_imports: Directories to mount on the client.
  • nfs_only_v4: Set to true to enable only NFSv4 (default is false).

Example Playbook

To set up the server:

  - hosts: server
    roles:
    - { role: 'grycap.nfs', nfs_mode: 'front', nfs_exports: [{path: "/home", export: "vnode*.localdomain(fsid=0,rw,async,no_root_squash,no_subtree_check,insecure)"}] }

To set up the client:

  - hosts: client
    roles:
    - { role: 'grycap.nfs', nfs_mode: 'wn', nfs_client_imports: [{ local: "/home", remote: "/home", server_host: "{{hostvars['server']['ansible_default_ipv4']}}" }] }

Contributing to the Role

To keep the code organized, direct changes to the master branch are not allowed. If you want to contribute, please create a new branch, make your changes, and then submit a pull request.
Thank you!

Informazioni sul progetto

NFS server/client

Installa
ansible-galaxy install grycap.nfs
Licenza
apache-2.0
Download
16k
Proprietario
Grid y Computación de Altas Prestaciones