forked from stove/dataset
129 lines
2.9 KiB
YAML
129 lines
2.9 KiB
YAML
---
|
|
version: 1.1
|
|
|
|
hide_secret:
|
|
description: Les secrets sont obscurcis
|
|
mode: advanced
|
|
help: >-
|
|
Obscurcir les secrets peut permettre de générer des configurations
|
|
diffusable sans problème de confidentialité ou pour comparer deux
|
|
configurations générés à des moments différents
|
|
hidden: true
|
|
default: false
|
|
|
|
base:
|
|
|
|
time_zone:
|
|
provider: Host:time_zone
|
|
hidden: true
|
|
mandatory: false
|
|
|
|
module_name:
|
|
hidden: true
|
|
provider: global:module_name
|
|
|
|
network:
|
|
|
|
server_name:
|
|
description: Nom de domaine du serveur
|
|
type: domainname
|
|
hidden: true
|
|
provider: global:server_name
|
|
|
|
last_server_name:
|
|
type: domainname
|
|
hidden: true
|
|
default:
|
|
jinja: >-
|
|
{%- if domain_name -%}
|
|
{{ domain_name[-1] }}
|
|
{%- endif -%}
|
|
params:
|
|
domain_name:
|
|
variable: >-
|
|
_.interface_{{ suffix }}.domain_name
|
|
|
|
zones_list:
|
|
multi: true
|
|
description: Liste de toutes les zones
|
|
hidden: true
|
|
provider: global:zones_name
|
|
|
|
interfaces_list:
|
|
type: number
|
|
multi: true
|
|
description: Liste de tous les numéros d'interfaces
|
|
hidden: true
|
|
provider: global:zones_list
|
|
mandatory: false
|
|
|
|
"interface_{{ suffix }}":
|
|
description: 'Interface {{ suffix }}'
|
|
dynamic:
|
|
variable: general.network.interfaces_list
|
|
|
|
zone_name:
|
|
description: "Nom de la zone de l'interface {{ suffix }}"
|
|
hidden: true
|
|
default:
|
|
jinja: >-
|
|
{%- if __.zones_list -%}
|
|
{{ __.zones_list[index] }}
|
|
{%- endif -%}
|
|
params:
|
|
index:
|
|
type: suffix
|
|
|
|
ip:
|
|
type: ip
|
|
description: "Adresse IP pour l'interface {{ suffix }}"
|
|
hidden: true
|
|
default:
|
|
jinja: >-
|
|
{{ zones | get_ip(server_name=_.domain_name) }}
|
|
params:
|
|
zones:
|
|
information: zones
|
|
|
|
network:
|
|
type: network_cidr
|
|
description: "Réseau de l'interface {{ suffix }}"
|
|
hidden: true
|
|
default:
|
|
jinja: >-
|
|
{{ zones | get_zones_info("network", zone_name=_.zone_name) }}
|
|
params:
|
|
zones:
|
|
information: zones
|
|
|
|
gateway:
|
|
type: ip
|
|
description: "La route de l'interface {{ suffix }}"
|
|
hidden: true
|
|
default:
|
|
jinja: >-
|
|
{{ zones | get_zones_info("host_ip",
|
|
zone_name=_.zone_name,
|
|
index=index)
|
|
}}
|
|
params:
|
|
zones:
|
|
information: zones
|
|
index:
|
|
type: suffix
|
|
disabled:
|
|
jinja: >-
|
|
{%- if index == 0 -%}
|
|
false
|
|
{%- else -%}
|
|
true
|
|
{%- endif -%}
|
|
params:
|
|
index:
|
|
type: suffix
|
|
|
|
domain_name:
|
|
type: domainname
|
|
description: "Nom de domaine pour l'interface {{ suffix }}"
|
|
hidden: true
|
|
provider: global:server_names
|