List rpcbind ports.
This commit is contained in:
		
							parent
							
								
									361a1e0cee
								
							
						
					
					
						commit
						1524482417
					
				| 
						 | 
				
			
			@ -19,6 +19,13 @@ Manage NFS (client) installation and configuration.
 | 
			
		|||
* **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_tpl** : Template used to generate the previous config file [default : `etc/default/nfs-common.j2`].
 | 
			
		||||
* **nfs_rpc_nfsd** : Port used by the NFS server [default : `2049`].
 | 
			
		||||
* **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** : Port used by RPC statd listener [default : `32766`].
 | 
			
		||||
* **nfs_rpc_mountd** : Port used by RPC mountd [default : `32767`].
 | 
			
		||||
* **nfs_rpc_lockd** : Port used by RPC nlock manager [default : `32768`].
 | 
			
		||||
* **nfs_rpc_quotad** : Port used by RPC quotad [default : `32769`].
 | 
			
		||||
 | 
			
		||||
### OS Specific Variables
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -41,6 +48,7 @@ Please see default value by Operating System file in [vars][vars directory] dire
 | 
			
		|||
This role will :
 | 
			
		||||
* Install needed packages to provide `nfs-client`.
 | 
			
		||||
* Manage `nfs-client` configuration files.
 | 
			
		||||
* Fix rpcbind ports.
 | 
			
		||||
 | 
			
		||||
## Development
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,3 +6,12 @@ nfs_cli_manage: true
 | 
			
		|||
nfs_cli_pkg_state: 'installed'
 | 
			
		||||
nfs_cli_conf_path: '/etc/default/nfs-common'
 | 
			
		||||
nfs_cli_conf_tpl: 'etc/default/nfs-common.j2'
 | 
			
		||||
 | 
			
		||||
# rpcbind
 | 
			
		||||
nfs_rpc_nfsd: '2049'
 | 
			
		||||
nfs_rpc_nfs_cb: '32764'
 | 
			
		||||
nfs_rpc_statd_bc: '32765'
 | 
			
		||||
nfs_rpc_statd: '32766'
 | 
			
		||||
nfs_rpc_mountd: '32767'
 | 
			
		||||
nfs_rpc_lockd: '32768'
 | 
			
		||||
nfs_rpc_quotad: '32769'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,4 +27,24 @@
 | 
			
		|||
    backup: true
 | 
			
		||||
  when: nfs_cli_manage
 | 
			
		||||
 | 
			
		||||
- name: CONFIG add rpcbind services
 | 
			
		||||
  blockinfile:
 | 
			
		||||
    state: present
 | 
			
		||||
    insertafter: EOF
 | 
			
		||||
    dest: /etc/services
 | 
			
		||||
    marker: "# {mark} add services ANSIBLE ipr-cnrs.nfs"
 | 
			
		||||
    content: |
 | 
			
		||||
      rpc.nfs-cb	{{ nfs_rpc_nfs_cb }}/tcp			# RPC nfs callback
 | 
			
		||||
      rpc.nfs-cb	{{ nfs_rpc_nfs_cb }}/udp			# RPC nfs callback
 | 
			
		||||
      rpc.statd-bc	{{ nfs_rpc_statd_bc }}/tcp			# RPC statd broadcast
 | 
			
		||||
      rpc.statd-bc	{{ nfs_rpc_statd_bc }}/udp			# RPC statd broadcast
 | 
			
		||||
      rpc.statd	{{ nfs_rpc_statd }}/tcp			# RPC statd listen
 | 
			
		||||
      rpc.statd	{{ nfs_rpc_statd }}/udp			# RPC statd listen
 | 
			
		||||
      rpc.mountd	{{ nfs_rpc_mountd }}/tcp			# RPC mountd
 | 
			
		||||
      rpc.mountd	{{ nfs_rpc_mountd }}/udp			# RPC mountd
 | 
			
		||||
      rpc.lockd	{{ nfs_rpc_lockd }}/tcp			# RPC lockd/nlockmgr
 | 
			
		||||
      rpc.lockd	{{ nfs_rpc_lockd }}/udp			# RPC lockd/nlockmgr
 | 
			
		||||
      rpc.quotad	{{ nfs_rpc_quotad }}/tcp			# RPC quotad
 | 
			
		||||
      rpc.quotad	{{ nfs_rpc_quotad }}/udp			# RPC quotad
 | 
			
		||||
  when: nfs_cli_manage
 | 
			
		||||
# }}}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in New Issue