rougail-tutorials/Rougail/socle/06-nfs.yml
Emmanuel Garette 6505eb6255 [tutorial Rougail 4.1] conditional disabled variable
NFS configuration
=================

Need could be activated. In this case, we need to add server domain name

---
env_nfs:
  configure: true
  server: another-nfs.silique.fr

Examples of Ops inventory file
==============================

1/ INVALID, only with Rougail:

---
env_nfs:
  configure: false
  server: another-nfs.silique.fr

2/ VALID:

---
env_nfs:
  configure: true
2023-12-18 11:34:35 +01:00

22 lines
548 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 %}