42 lines
3.7 KiB
Bash
42 lines
3.7 KiB
Bash
|
# dictionaries/rougail/00-base.yml
|
|||
|
|
|||
|
```yaml
|
|||
|
---
|
|||
|
version: '1.1'
|
|||
|
var1:
|
|||
|
description: a first variable
|
|||
|
test:
|
|||
|
- another_value
|
|||
|
type: string
|
|||
|
default: oui
|
|||
|
validators:
|
|||
|
- jinja: |
|
|||
|
{% if _.var1 == _.var2 %}
|
|||
|
var1 must be different than var2
|
|||
|
{% endif %}
|
|||
|
description: var1 must be different than var2
|
|||
|
var2: no # A second variable
|
|||
|
```
|
|||
|
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
|||
|
┃ [1mVariables[0m ┃
|
|||
|
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
[1m [0m[1mVariable [0m[1m [0m [1m [0m[1mDescription [0m[1m [0m
|
|||
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|||
|
[1mvar1[0m
|
|||
|
[1;36;40mstring[0m [1;36;40mstandard[0m [1;36;40mmandatory[0m A first variable.
|
|||
|
[1mValidator[0m: var1 must be different than var2.
|
|||
|
[1mDefault[0m: oui
|
|||
|
[1mExample[0m: another_value
|
|||
|
[1mvar2[0m
|
|||
|
[1;36;40mstring[0m [1;36;40mstandard[0m [1;36;40mmandatory[0m A second variable.
|
|||
|
[1mDefault[0m: no
|
|||
|
|