Wenn man VMs und Gruppen mehrfach ineinander veschachtelt, kann dabei so etwas wie das folgende herauskommen:
- ---
- defaults:
- key1: val1
- .
- .
- vms:
- - name: vm01.pp.com
- interfaces:
- - address_v4: 10.5.6.1
- - name: vm02.pp.com
- interfaces:
- - address_v4: 10.5.6.2
- groups:
- - name: Group 01
- defaults:
- key1: val2
- .
- .
- vms:
- - name: vm03.pp.com
- interfaces:
- - address_v4: 10.5.6.3
- - name: vm04.pp.com
- interfaces:
- - address_v4: 10.5.6.4
- - name: Group 02
- defaults:
- key1: val12
- key2: val22
- .
- .
- vms:
- - name: vm05.pp.com
- interfaces:
- - address_v4: 10.5.6.5
- - name: vm06.pp.com
- interfaces:
- - address_v4: 10.5.6.6
- groups:
- - name: Group 0-1
- defaults:
- key2: val23
- .
- .
- vms:
- - name: vm07.pp.com
- interfaces:
- - address_v4: 10.5.6.7
- - name: vm08.pp.com
- interfaces:
- - address_v4: 10.5.6.8
+ ---
+ defaults:
+ key1: val1
+ .
+ .
+ vms:
+ - name: vm01.pp.com
+ interfaces:
+ - address_v4: 10.5.6.1
+ - name: vm02.pp.com
+ interfaces:
+ - address_v4: 10.5.6.2
+ groups:
+ - name: Group 01
+ defaults:
+ key1: val2
+ .
+ .
+ vms:
+ - name: vm03.pp.com
+ interfaces:
+ - address_v4: 10.5.6.3
+ - name: vm04.pp.com
+ interfaces:
+ - address_v4: 10.5.6.4
+ - name: Group 02
+ defaults:
+ key1: val12
+ key2: val22
+ .
+ .
+ vms:
+ - name: vm05.pp.com
+ interfaces:
+ - address_v4: 10.5.6.5
+ - name: vm06.pp.com
+ interfaces:
+ - address_v4: 10.5.6.6
+ groups:
+ - name: Group 0-1
+ defaults:
+ key2: val23
+ .
+ .
+ vms:
+ - name: vm07.pp.com
+ interfaces:
+ - address_v4: 10.5.6.7
+ - name: vm08.pp.com
+ interfaces:
+ - address_v4: 10.5.6.8
**Hinweis:** Sebstverständlich müssen die Projekt-Dateien UTF-8 codiert sein (Standard bei YAML - wenn ich etwas
anderes finde, hacke ich dem Verursacher die Hände ab). Weiterhin möchte ich bitten, dass der POSIX-Standard