You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This actually depends on a few things. The debops.ifupdown role needs to know about interfaces you are trying to configure - if you replace the current interface configuration list with a new one without the old interfaces being there and configured for deletion, debops.ifupdown won't touch the old network configuration. The same happens with the ifupdown scripts as well - if the old network configuration is replaced without being turned off first, the scripts lose track of what is confgured and the network configuration is broken.
So the correct steps to change the already configured interfaces to a different set would be:
add new interface configuration along with the old one. Set old one to be deleted (item.delete: True). Run debops.ifupdown.
check if the new network configuration is the one you wanted.
remove the old interface configuration from the inventory. Run debops.ifupdown again to confirm that the configuration applied is correct.
Of course this is not an issue when you have an already configured interfaces in inventory and apply that configuration to a new host. So it's good to design an interface configuration beforehand, on a disposable VM, expecting to apply that on a new host.
Just tried this with v0.3.0 which is just being released. It should work now as expected thanks to @drybjed who carefully redesigned and updated the role. @htgoebel I can confirm that state: absent removes a prevously configured bridge so this issue can be closed.
example_static.yml
)debops service/ifupdown
I'd expect the bridge interface to be down.
The text was updated successfully, but these errors were encountered: