From b31d0b89b0a3f74893e9a31da3d26dab0d7e449c Mon Sep 17 00:00:00 2001 From: Georg Kunz Date: Sun, 2 Aug 2020 22:27:32 +0200 Subject: [PATCH] Adding pdf and idf for Ericsson pod 1 This adds the pod descriptor file and installer descriptor file for Ericsson pod 1. Signed-off-by: Georg Kunz Change-Id: Ie518f71a35b657ef4a7b17464cb8f0e4116a3771 --- hw_config/ericsson-pod1/idf.yaml | 66 ++++++++++++++ hw_config/ericsson-pod1/pdf.yaml | 145 +++++++++++++++++++++++++++++++ hw_config/ericsson-pod1/setup_network.sh | 8 ++ 3 files changed, 219 insertions(+) create mode 100644 hw_config/ericsson-pod1/idf.yaml create mode 100644 hw_config/ericsson-pod1/pdf.yaml create mode 100755 hw_config/ericsson-pod1/setup_network.sh diff --git a/hw_config/ericsson-pod1/idf.yaml b/hw_config/ericsson-pod1/idf.yaml new file mode 100644 index 0000000..466a340 --- /dev/null +++ b/hw_config/ericsson-pod1/idf.yaml @@ -0,0 +1,66 @@ +# SPDX-license-identifier: Apache-2.0 +############################################################################## +# Copyright (c) 2020 Ericsson AB and others +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## +--- +### ERICSSON POD 2 installer descriptor file ### +idf: + version: 0.1 + net_config: &net_config + oob: + interface: 0 + vlan: native + network: 10.0.20.0 + gateway: 10.0.20.1 + mask: 24 + dns: + - 192.168.1.200 + - 8.8.8.8 + public: + interface: 1 + vlan: 80 + network: 100.64.200.6 + gateway: 100.64.200.1 + mask: 24 + dns: + - 192.168.1.200 + - 8.8.8.8 + kubespray: &idf_kubespray + nodes_roles: + node1: [k8s-cluster, kube-node, kube-master, etcd, vault] + node2: [k8s-cluster, kube-node] + groups: + k8s-cluster: + - kube-node + - kube-master + hostnames: + node1: master0 + node2: node0 + network: + # network mapping + network_mapping: + net_admin: oob + # Public network + net_public: public + # Management network used by installer components to communicate + net_mgmt: public + +engine: + pod_name: ericsson-pod1 + net_config: *net_config + + # net_config network to be used by the PXE + pxe_network: oob + + # net_config network to be used for the internet access + public_network: public + + # interface to be used by the PXE + pxe_interface: ens4 + + installers: + kubespray: *idf_kubespray diff --git a/hw_config/ericsson-pod1/pdf.yaml b/hw_config/ericsson-pod1/pdf.yaml new file mode 100644 index 0000000..7896877 --- /dev/null +++ b/hw_config/ericsson-pod1/pdf.yaml @@ -0,0 +1,145 @@ +--- +# SPDX-license-identifier: Apache-2.0 +############################################################################## +# Copyright (c) 2020 Ericsson AB and others +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## +version: 1.0 +details: + pod_owner: Nordix + contact: infra@nordix.org + lab: Nordix OpenLab + location: N/A + type: baremetal + link: http://wiki.nordix.org/ +############################################################################## +jumphost: + name: kuberef-jump + node: + type: virtual + vendor: vmware + model: pc + arch: x86_64 + cpus: 4 + cpu_cflags: host-passthrough + cores: 4 + memory: 9G + disks: + - name: disk1 + disk_capacity: 250G + disk_type: hdd + disk_interface: sata + disk_rotation: + os: ubuntu1804 + interfaces: + - name: 'ens4' + address: 10.0.20.1 + mac_address: 52:54:00:4a:e8:2d + - name: 'ens3' + address: 100.64.200.254 +############################################################################## +nodes: + - name: node1 + node: &nodeparams + type: baremetal + vendor: HP + model: ProLiant BL460c Gen8 + arch: x86_64 + cpus: 2 + cpu_cflags: ivybridge + cores: 10 + memory: 64G + disks: &disks + - name: disk1 + disk_capacity: 745G + disk_type: hdd + disk_interface: scsi + disk_rotation: 15000 + remote_params: &remoteparas + type: + - ipmi + user: opnfv + pass: Winter2017 + remote_management: + <<: *remoteparas + address: 172.16.1.19 + mac_address: "FC:15:B4:12:97:64" + interfaces: + - name: 'nic1' + speed: 1gb + features: 'dpdk|sriov' + mac_address: "9c:b6:54:8a:95:a0" + vlan: native + address: 10.0.20.9 + - name: 'nic2' + speed: 10gb + features: 'dpdk|sriov' + mac_address: "38:ea:a7:8f:52:cc" + address: 100.64.200.9 + vlan: native + - name: 'nic3' + speed: 10gb + features: 'dpdk|sriov' + mac_address: "38:ea:a7:8f:1f:d4" +# address: 192.168.11.19 + - name: 'nic4' + speed: 10gb + features: 'dpdk|sriov' + mac_address: "38:ea:a7:8f:1f:d5" +# address: 100.64.200.9 + - name: 'nic5' + speed: 10gb + features: 'dpdk|sriov' + mac_address: "38:ea:a7:8f:52:cd" +# address: 100.64.200.9 + - name: 'nic6' + speed: 10gb + features: 'dpdk|sriov' + mac_address: "00:00:00:00:00:00" + address: 10.10.10.15 + vlan: native + ############################################################################ + - name: node2 + node: *nodeparams + disks: *disks + remote_management: + <<: *remoteparas + address: 172.16.1.20 + mac_address: "9C:B6:54:8E:C5:74" + interfaces: + - name: 'nic1' + speed: 1gb + features: 'dpdk|sriov' + address: 10.0.20.10 + mac_address: "9c:b6:54:8a:10:18" + vlan: native + - name: 'nic2' + speed: 10gb + features: 'dpdk|sriov' + address: 100.64.200.10 + mac_address: "38:ea:a7:8f:12:48" + vlan: native + - name: 'nic3' + speed: 10gb + features: 'dpdk|sriov' + mac_address: "38:ea:a7:8f:07:50" +# address: 192.168.11.20 + - name: 'nic4' + speed: 10gb + features: 'dpdk|sriov' +# address: 10.10.10.12 + mac_address: "38:ea:a7:8f:07:51" + - name: 'nic5' + speed: 10gb + features: 'dpdk|sriov' +# address: 100.64.200.10 + mac_address: "38:ea:a7:8f:12:49" + - name: 'nic6' + speed: 10gb + features: 'dpdk|sriov' + mac_address: "00:00:00:00:00:00" +# address: 10.10.10.14 + vlan: native diff --git a/hw_config/ericsson-pod1/setup_network.sh b/hw_config/ericsson-pod1/setup_network.sh new file mode 100755 index 0000000..022394d --- /dev/null +++ b/hw_config/ericsson-pod1/setup_network.sh @@ -0,0 +1,8 @@ +# Adapt this script according to your network setup +# TODO Get networking info from PDF & IDF +# TODO Add support in infra engine to update nameserver, etc +# files with correct info +#!/bin/bash + +echo "no additional network setup needed" + -- 2.16.6