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 --- labs/intel/pod5/pod.yaml | 61 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 labs/intel/pod5/pod.yaml (limited to 'labs/intel') diff --git a/labs/intel/pod5/pod.yaml b/labs/intel/pod5/pod.yaml new file mode 100644 index 0000000..86077a7 --- /dev/null +++ b/labs/intel/pod5/pod.yaml @@ -0,0 +1,61 @@ +--- +### intel pod 5 descriptor file ### + +global_details: + pod owner: + contact: + arch: x86_64 + ipmi_username: "root" + ipmi_password: "root" + ipmi_ips: + - 10.2.117.85 + - 10.2.117.86 + - 10.2.117.87 + - 10.2.117.88 + - 10.2.117.89 + - 10.2.117.90 +jumphost: + name: '' + user: '' + pass: '' + ip: +interfaces: + - features: + - dpdk + - sriov + mac_addresses: + jumphost: "00:25:B5:CC:00:4E" + node1: "00:25:B5:CC:00:1E" + node2: "00:25:B5:CC:00:5D" + node3: "00:25:B5:CC:00:1D" + node4: "00:25:B5:CC:00:3C" + node5: "00:25:B5:A0:00:5B" + networks: + - vlan: native + cidr: 192.30.9.0/24 + gateway: 192.30.9.1 + apex: + opnfv_net: admin + fuel: + opnfv_net: pxe + joid: + opnfv_net: interal_api + + - vlan: 101 + cidr: 10.0.1.0/24 + fuel: + opnfv_net: tenant + tenant_type: vlan + + - vlan: 102 + cidr: 10.0.2.0/24 + fuel: + opnfv_net: management + tenant_type: vlan + - vlan: 103 + cidr: 10.0.3.0/24 + fuel: + opnfv_net: tenant + tenant_type: vlan +# 10 vlans 5 vlans on the private 2+ nics +# public, private, admin(pxe), management, storage -- cgit