cellinfo
/
ansible.nfs
Archived
2
0
Fork 0

Compare commits

..

3 Commits
v1.1 ... master

Author SHA1 Message Date
Jeremy Gardais 955324cb82 Project stopped
Please use debops.nfs and debops.nfs_server
2018-03-09 14:29:47 +01:00
Jeremy Gardais 146f9ba1d4 Version 1.1.1. 2018-01-04 11:52:25 +01:00
Guillaume Raffy 5a9d0cf184 ipmroved documentation and fixed typos 2017-10-03 16:01:03 +02:00
5 changed files with 35 additions and 13 deletions

19
CHANGELOG.md Normal file
View File

@ -0,0 +1,19 @@
## v1.1.1
### Enhancements
* Improved documentation and fixed typos.
## v1.1
### Enhancements
* Manage client configuration file.
* List the ports used by rpcbind.
* Set statd and quotad ports.
### Fix
## v1.0
### Features
* Install nfs client for Debian.

View File

@ -1,4 +1,5 @@
# NFS # NFS - Projet **ARRÊTÉ** au profit de [debops.nfs][debops nfs] et [debops.nfs_server][debops nfs server].
1. [Overview](#overview) 1. [Overview](#overview)
2. [Role Variables](#role-variables) 2. [Role Variables](#role-variables)
@ -11,7 +12,7 @@
## Overview ## Overview
Manage NFS (client) installation and configuration. This role manages NFS client installation and configuration using fixed ports.
## Role Variables ## Role Variables
@ -76,3 +77,5 @@ Jérémy Gardais
[nfs github]: https://github.com/ipr-cnrs/nfs [nfs github]: https://github.com/ipr-cnrs/nfs
[wtfpl website]: http://www.wtfpl.net/about/ [wtfpl website]: http://www.wtfpl.net/about/
[ipr website]: https://ipr.univ-rennes1.fr/ [ipr website]: https://ipr.univ-rennes1.fr/
[debops nfs]: https://github.com/debops/debops/tree/master/ansible/roles/debops.nfs
[debops nfs server]: https://github.com/debops/debops/tree/master/ansible/roles/debops.nfs_server

View File

@ -5,10 +5,10 @@
nfs_cli_manage: true nfs_cli_manage: true
nfs_cli_pkg_state: 'installed' nfs_cli_pkg_state: 'installed'
nfs_cli_conf_path: '/etc/default/nfs-common' nfs_cli_conf_path: '/etc/default/nfs-common'
nfs_cli_conf_tpl: 'etc/default/nfs-common.j2' nfs_cli_conf_tpl: 'etc/default/nfs-common.j2' # TODO : hide this variable from user, this is for this role's internal use
nfs_quota_conf_path: '/etc/default/quota' nfs_quota_conf_path: '/etc/default/quota'
nfs_quota_conf_tpl: 'etc/default/quota.j2' nfs_quota_conf_tpl: 'etc/default/quota.j2' # TODO : hide this variable from user, this is for this role's internal use
# rpcbind # rpcbind
nfs_rpc_nfsd: '2049' nfs_rpc_nfsd: '2049'

View File

@ -1,6 +1,6 @@
galaxy_info: galaxy_info:
author: "Jérémy Gardais" author: "Jérémy Gardais"
description: "Manage NFS (client/server) installation and configuration" description: "This role manages NFS client installation and configuration using fixed ports"
license: WTFPL license: WTFPL
company: IPR company: IPR
issue_tracker_url: https://git.ipr.univ-rennes1.fr/cellinfo/ansible.nfs/issues issue_tracker_url: https://git.ipr.univ-rennes1.fr/cellinfo/ansible.nfs/issues

View File

@ -1,23 +1,23 @@
--- ---
# tasks file for nfs # tasks file for role nfs
- name: Load specific OS vars for nfs - name: load operating system specific variables for nfs
include_vars: "{{ item }}" include_vars: "{{ item }}" # includes yml file containing os specific variable, eg "debian.yml" found in role_root/vars
with_first_found: with_first_found:
- "{{ ansible_distribution|lower }}-{{ ansible_distribution_version }}.yml" - "{{ ansible_distribution|lower }}-{{ ansible_distribution_version }}.yml"
- "{{ ansible_distribution|lower }}.yml" - "{{ ansible_distribution|lower }}.yml"
- "{{ ansible_os_family|lower }}.yml" - "{{ ansible_os_family|lower }}.yml"
# client {{{ # client {{{
- name: client package - name: ensure nfs client package is in the required install state
package: package:
name: '{{ item }}' name: '{{ item }}' # TODO: why not simply {{ nfs_cli_pkg_list }} ?
state: '{{ nfs_cli_pkg_state }}' state: '{{ nfs_cli_pkg_state }}'
with_items: with_items:
- '{{ nfs_cli_pkg_list }}' - '{{ nfs_cli_pkg_list }}'
when: nfs_cli_manage when: nfs_cli_manage
- name: CONFIG nfs-client - name: configure nfs-client
template: template:
src: '{{ nfs_cli_conf_tpl }}' src: '{{ nfs_cli_conf_tpl }}'
dest: '{{ nfs_cli_conf_path }}' dest: '{{ nfs_cli_conf_path }}'
@ -27,7 +27,7 @@
backup: true backup: true
when: nfs_cli_manage when: nfs_cli_manage
- name: CONFIG nfs-quota - name: configure nfs-quota
template: template:
src: '{{ nfs_quota_conf_tpl }}' src: '{{ nfs_quota_conf_tpl }}'
dest: '{{ nfs_quota_conf_path }}' dest: '{{ nfs_quota_conf_path }}'
@ -37,7 +37,7 @@
backup: true backup: true
when: nfs_cli_manage when: nfs_cli_manage
- name: CONFIG add rpcbind services - name: declare rpcbind ports in /etc/services
blockinfile: blockinfile:
state: present state: present
insertafter: EOF insertafter: EOF