rougail-output-doc/tests/docs/base/44_6leadership_follower_disabled_calculation.md
2024-08-05 14:38:59 +02:00

9.6 KiB

Table of Contents

dictionaries/rougail/00-base.yml

---
version: '1.1'
condition: yes    # a condition
leader:
  description: a leadership
  type: leadership
  leader:
    description: a leader
    multi: true
  follower:
    description: a follower
    disabled:
      type: jinja
      jinja: |
        {% if __.condition == "yes" %}true{% else %}false{% endif %}        
      description: if condition is yes

Variables for "rougail"

Variable                                                                                                             Description                                                                                                         
rougail.condition
string standard mandatory
A condition.
Default: yes

a leadership

basic

This family contains lists of variable blocks.

Variable                                                                                                             Description                                                                                                         
rougail.leader.leader
string basic mandatory unique multiple
A leader.
rougail.leader.follower
string basic mandatory disabled
A follower.
Disabled: if condition is yes.

Example with all variables modifiable

---
rougail:
  condition: yes
  leader:
    - leader: example
      follower: example