From 605523f4809302feea325eedb24755c4b943a661 Mon Sep 17 00:00:00 2001 From: agardner Date: Wed, 26 Apr 2017 13:48:59 +0200 Subject: Takes a template file and feeds it values Values come from a pod config file. This is just an example, only ipmi_ips are templated at this time. eg: address: {{ config['global_details']['ipmi_ips'][0] }} test like this: ./utils/generate_config.py -y labs/intel/pod5/pod.yaml -j installers/joid/labconfig.jinja2 releng should have a new job, validate-templates that looks for pattern: 'utils/generate_config.yml' pattern: '**/*.jinja2' and tests that templating does not error. Change-Id: I7f781abb702afcfccf7ed17674378cffe4a7177d Signed-off-by: agardner --- installers/apex/network_settings.jinja2 | 216 ++++++++++++++++++++++++++++++++ 1 file changed, 216 insertions(+) create mode 100755 installers/apex/network_settings.jinja2 (limited to 'installers/apex/network_settings.jinja2') diff --git a/installers/apex/network_settings.jinja2 b/installers/apex/network_settings.jinja2 new file mode 100755 index 0000000..4ef349c --- /dev/null +++ b/installers/apex/network_settings.jinja2 @@ -0,0 +1,216 @@ +# This configuration file defines Network Environment for a +# Baremetal Deployment of OPNFV. It contains default values +# for 5 following networks: +# +# - admin +# - tenant* +# - external* +# - storage* +# - api* +# *) optional networks +# +# Optional networks will be consolidated with the admin network +# if not explicitly configured. +# +# See short description of the networks in the comments below. +# +# "admin" is the short name for Control Plane Network. +# This network should be IPv4 even it is an IPv6 deployment +# IPv6 does not have PXE boot support. +# During OPNFV deployment it is used for node provisioning which will require +# PXE booting as well as running a DHCP server on this network. Be sure to +# disable any other DHCP/TFTP server on this network. +# +# "tenant" is the network used for tenant traffic. +# +# "external" is the network which should have internet or external +# connectivity. External OpenStack networks will be configured to egress this +# network. There can be multiple external networks, but only one assigned as +# "public" which OpenStack public API's will register. +# +# "storage" is the network for storage I/O. +# +# "api" is an optional network for splitting out OpenStack service API +# communication. This should be used for IPv6 deployments. + + +#Meta data for the network configuration +network-config-metadata: + title: LF-POD-1 Network config + version: 0.1 + created: Mon Dec 28 2015 + comment: None + +# DNS Settings +dns-domain: opnfvlf.org +dns-search: opnfvlf.org +dns_nameservers: + - 8.8.8.8 + - 8.8.4.4 +# NTP servers +ntp: + - 0.se.pool.ntp.org + - 1.se.pool.ntp.org +# Syslog server +syslog: + server: 10.128.1.24 + transport: 'tcp' + +# Common network settings +networks: + admin: + enabled: true + installer_vm: + nic_type: interface + members: + - enp6s0 + vlan: native + ip: 192.30.9.1 + usable_ip_range: + - 192.30.9.12 + - 192.30.9.99 + gateway: 192.30.9.1 + cidr: 192.30.9.0/24 + dhcp_range: + - 192.30.9.2 + - 192.30.9.10 + nic_mapping: + compute: + phys_type: interface + members: + - enp6s0 + controller: + phys_type: interface + members: + - enp6s0 + + tenant: + enabled: true + cidr: 11.0.0.0/24 + mtu: 1500 + overlay_id_range: 2,65535 + + segmentation_type: vxlan + + nic_mapping: + compute: + phys_type: interface + uio_driver: uio_pci_generic # UIO driver to use for DPDK scenarios. The value is ignored for non-DPDK scenarios. + vlan: native + members: + - enp7s0 + controller: + phys_type: interface + vlan: native + members: + - enp7s0 + + external: + - public: + enabled: true + mtu: 1500 + installer_vm: + nic_type: interface + vlan: native + members: + - enp8s0 + ip: 172.30.9.67 + cidr: 172.30.9.0/24 + gateway: 172.30.9.1 + floating_ip_range: + - 172.30.9.200 + - 172.30.9.220 + usable_ip_range: + - 172.30.9.70 + - 172.30.9.199 + + nic_mapping: + compute: + phys_type: interface + vlan: native + members: + - enp8s0 + controller: + phys_type: interface + vlan: native + members: + - enp8s0 + external_overlay: + name: Public_internet + type: flat + gateway: 172.30.9.1 + - private_cloud: + enabled: false + mtu: 1500 + installer_vm: + nic_type: interface + vlan: 101 + members: + - em1 + ip: 192.168.38.1 + cidr: 192.168.38.0/24 + gateway: 192.168.38.1 + floating_ip_range: + - 192.168.38.200 + - 192.168.38.220 + usable_ip_range: + - 192.168.38.10 + - 192.168.38.199 + + nic_mapping: + compute: + phys_type: interface + vlan: 101 + members: + - enp8s0 + controller: + phys_type: interface + vlan: 101 + members: + - enp8s0 + external_overlay: + name: private_cloud + type: vlan + segmentation_id: 101 + gateway: 192.168.38.1 + + storage: + enabled: true + cidr: 12.0.0.0/24 + mtu: 1500 + nic_mapping: + compute: + phys_type: interface + vlan: native + members: + - enp9s0 + controller: + phys_type: interface + vlan: native + members: + - enp9s0 + + api: + enabled: false + cidr: fd00:fd00:fd00:4000::/64 + vlan: 13 + mtu: 1500 + nic_mapping: + compute: + phys_type: interface + vlan: native + members: + - enp10s0 + controller: + phys_type: interface + vlan: native + members: + - enp10s0 + +# Apex specific settings +apex: + networks: + admin: + introspection_range: + - 192.30.9.100 + - 192.30.9.120 -- cgit 1.2.3-korg