cellinfo
/
ansible.nfs
Archived
2
0
Fork 0

Fix quotad port.

This commit is contained in:
Jeremy Gardais 2017-07-20 16:36:13 +02:00
parent 501bd47a6e
commit 38cacfe240
4 changed files with 17 additions and 0 deletions

View File

@ -19,6 +19,8 @@ Manage NFS (client) installation and configuration.
* **nfs_cli_pkg_state**: State of new `nfs-client` package(s) [default: `installed`]. * **nfs_cli_pkg_state**: State of new `nfs-client` package(s) [default: `installed`].
* **nfs_cli_conf_path**: Configuration file for `nfs-client` [default: `/etc/default/nfs-common`]. * **nfs_cli_conf_path**: Configuration file for `nfs-client` [default: `/etc/default/nfs-common`].
* **nfs_cli_conf_tpl**: Template used to generate the previous config file [default: `etc/default/nfs-common.j2`]. * **nfs_cli_conf_tpl**: Template used to generate the previous config file [default: `etc/default/nfs-common.j2`].
* **nfs_quota_conf_path**: Configuration file for `quota` (`nfs-client`) [default: `/etc/default/quota`].
* **nfs_quota_conf_tpl**: Template used to generate the previous config file [default: `etc/default/quota.j2`].
* **nfs_rpc_nfsd**: Port used by the NFS server [default: `2049`]. * **nfs_rpc_nfsd**: Port used by the NFS server [default: `2049`].
* **nfs_rpc_nfs_cb**: Port used by RPC callback [default: `32764`]. * **nfs_rpc_nfs_cb**: Port used by RPC callback [default: `32764`].
* **nfs_rpc_statd_bc**: Port used by RPC statd broadcast [default: `32765`]. * **nfs_rpc_statd_bc**: Port used by RPC statd broadcast [default: `32765`].

View File

@ -7,6 +7,9 @@ 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'
nfs_quota_conf_path: '/etc/default/quota'
nfs_quota_conf_tpl: 'etc/default/quota.j2'
# rpcbind # rpcbind
nfs_rpc_nfsd: '2049' nfs_rpc_nfsd: '2049'
nfs_rpc_nfs_cb: '32764' nfs_rpc_nfs_cb: '32764'

View File

@ -27,6 +27,16 @@
backup: true backup: true
when: nfs_cli_manage when: nfs_cli_manage
- name: CONFIG nfs-quota
template:
src: '{{ nfs_quota_conf_tpl }}'
dest: '{{ nfs_quota_conf_path }}'
owner: root
group: root
mode: 0644
backup: true
when: nfs_cli_manage
- name: CONFIG add rpcbind services - name: CONFIG add rpcbind services
blockinfile: blockinfile:
state: present state: present

View File

@ -0,0 +1,2 @@
# {{ ansible_managed }}
RPCRQUOTADOPTS="-p {{ nfs_rpc_quotad }}"