vars: Use lxc_net_bridge instead of hardcoded lxcbr0
'lxc_net_bridge' holds the name of the bridge interface for the lxc containers so we need to use that one instead of the hardcoded 'lxcbr0' value. Change-Id: I8f7b01f90cf87f20092d83ee81689cae79b2477d
This commit is contained in:
@@ -88,7 +88,7 @@ lxc_cache_distro_packages:
|
||||
|
||||
lxc_cached_network_interfaces:
|
||||
- src: "lxc-net-redhat-bridge.cfg.j2"
|
||||
dest: "/etc/sysconfig/network-scripts/ifcfg-lxcbr0"
|
||||
dest: "/etc/sysconfig/network-scripts/ifcfg-{{ lxc_net_bridge }}"
|
||||
|
||||
lxc_container_default_interfaces: |
|
||||
DEVICE=eth0
|
||||
|
||||
@@ -83,7 +83,7 @@ lxc_cache_distro_packages:
|
||||
|
||||
lxc_cached_network_interfaces:
|
||||
- src: "lxc-net-suse-bridge.cfg.j2"
|
||||
dest: "/etc/sysconfig/network/ifcfg-lxcbr0"
|
||||
dest: "/etc/sysconfig/network/ifcfg-{{ lxc_net_bridge }}"
|
||||
|
||||
lxc_container_default_interfaces: |
|
||||
STARTMODE=auto
|
||||
|
||||
Reference in New Issue
Block a user