Add network configuration templates
This changeset adds templates used by osbash/wbatch guest-side scripts when creating network configuration files. The template-ubuntu-interfaces-* files are for /etc/network/interfaces (as used by Ubuntu and Debian). The template-fedora-ifcfg-* files are for ifcfg-<interfacename> files in /etc/sysconfig/network-scripts/ (as used by Fedora). Partial-Bug: 1312764 Implements: blueprint openstack-training-labs Change-Id: I0aebc71e416bf931aa698d66d9e135ba05fda017
This commit is contained in:
parent
e28cf12271
commit
c628cc38c4
5
labs/lib/osbash/templates/template-fedora-ifcfg-hostonly
Normal file
5
labs/lib/osbash/templates/template-fedora-ifcfg-hostonly
Normal file
@ -0,0 +1,5 @@
|
||||
DEVICE=%IF_NAME%
|
||||
ONBOOT=yes
|
||||
BOOTPROTO=none
|
||||
IPADDR=%IP_ADDRESS%
|
||||
NETMASK=255.255.255.0
|
4
labs/lib/osbash/templates/template-fedora-ifcfg-nat
Normal file
4
labs/lib/osbash/templates/template-fedora-ifcfg-nat
Normal file
@ -0,0 +1,4 @@
|
||||
# VirtualBox NAT -- for Internet access to VM
|
||||
DEVICE=%IF_NAME%
|
||||
ONBOOT=yes
|
||||
BOOTPROTO=dhcp
|
@ -0,0 +1,4 @@
|
||||
auto %IF_NAME%
|
||||
iface %IF_NAME% inet static
|
||||
address %IP_ADDRESS%
|
||||
netmask 255.255.255.0
|
@ -0,0 +1,3 @@
|
||||
# The loopback network interface
|
||||
auto lo
|
||||
iface lo inet loopback
|
3
labs/lib/osbash/templates/template-ubuntu-interfaces-nat
Normal file
3
labs/lib/osbash/templates/template-ubuntu-interfaces-nat
Normal file
@ -0,0 +1,3 @@
|
||||
# VirtualBox NAT -- for Internet access to VM
|
||||
auto eth0
|
||||
iface eth0 inet dhcp
|
Loading…
x
Reference in New Issue
Block a user