e311cb657e
This change allows for caching of the MAC addresses between runs by using local facts on the physical host. This saves calculation time after the first run, since the facts are effectively cached. This also means any containers that rely on having stable MAC addresses (such as neutron agents or rabbitmq) can be recreated with the same MAC address if the container is destroyed. It will *not* be retained if destroyed and removed from inventory, however, since the facts rely on using the exact same hostname. Change-Id: Id3d13299c1416cc4862437629b32f4309c2dc595
8 lines
339 B
YAML
8 lines
339 B
YAML
---
|
|
features:
|
|
- MAC addresses for containers with a fixed MAC (`lxc_container_fixed_mac`
|
|
variable) are now saved to the ``/etc/ansible/facts.d/mac.fact`` file.
|
|
Should such a container be destroyed but not removed from inventory,
|
|
the interfaces will be recreated with the same MAC address when the
|
|
container is recreated.
|