Add OVN chassis macs to hieradata

Add template for hireadata file containing OVN chassis mac
mapping.

Depends-On: https://review.opendev.org/732175
Change-Id: Id10f4dc7c1faf0b59bcf33dcdd64620558d9f1d5
Related-Bug: #1881593
This commit is contained in:
Harald Jensås 2020-06-05 02:06:30 +02:00
parent 42737784bc
commit 1884f32a71
4 changed files with 6 additions and 2 deletions

View File

@ -45,3 +45,4 @@
- service_configs
- service_names
- vip_data
- ovn_chassis_mac_map

View File

@ -256,7 +256,8 @@ provisioner:
validate_ntp: true
Standalone:
hosts:
ubi8: {}
ubi8:
datacentre: bb:bb:bb:bb:bb:bb
log: true
env:
ANSIBLE_STDOUT_CALLBACK: yaml

View File

@ -34,7 +34,8 @@ def test_json_render(host):
"net_ip_map",
"service_configs",
"service_names",
"vip_data"
"vip_data",
"ovn_chassis_mac_map"
]
for f in rendered_files:

View File

@ -0,0 +1 @@
{{ hostvars[inventory_hostname]['ovn_chassis_mac_map'] | default({}) | to_nice_json }}