Emmanuel Garette
df0db70661
NFS configuration ================= Need could be activated. In this case, we need to add server domain name Examples of Ops inventory file ============================== 1/ VALID: --- env_nfs: configure: false 2/ INVALID, configure is false but default: env_nfs: server: another-nfs.silique.fr 3/ VALID: --- env_nfs: configure: true 4/ VALID env_nfs: configure: true server: another-nfs.silique.fr
33 lines
789 B
YAML
33 lines
789 B
YAML
---
|
|
version: "1.0"
|
|
env_nfs:
|
|
description: NFS configuration
|
|
configure:
|
|
description: Configure NFS mount
|
|
help: |
|
|
To share documents between differents services, you need to configure
|
|
a NFS server
|
|
type: boolean
|
|
default: false
|
|
server:
|
|
description: NFS server name
|
|
help: Configure NFS server only if env_nfs.configure is true
|
|
type: domainname
|
|
default: nfs.silique.fr
|
|
disabled:
|
|
type: jinja
|
|
jinja: |
|
|
{% if not socle.env_nfs.configure %}
|
|
NFS is disabled
|
|
{% endif %}
|
|
device:
|
|
default:
|
|
type: jinja
|
|
jinja: "{{ socle.env_nfs.server }}:/nfs"
|
|
hidden: true
|
|
disabled:
|
|
type: jinja
|
|
jinja: |
|
|
{% if not socle.env_nfs.configure %}
|
|
NFS is disabled
|
|
{% endif %}
|