commit 6d0e1234d991d5336c1b9b5aa05b0baec368892c Author: Drew Walters Date: Thu Oct 1 18:23:03 2020 +0000 Update deployment scripts to match airshipctl New deployment scripts have been added to airshipctl but are missing from Treasuremap. This change updates the series of deployment scripts to include those recently added to airshipctl. Change-Id: Ieb827d079709a3962b35b43b1d5534ba9de20ad5 diff --git a/manifests/site/test-site/shared/catalogues/hosts.yaml b/manifests/site/test-site/shared/catalogues/hosts.yaml index 858c607..e3a968a 100644 --- a/manifests/site/test-site/shared/catalogues/hosts.yaml +++ b/manifests/site/test-site/shared/catalogues/hosts.yaml @@ -9,6 +9,7 @@ metadata: hosts: m3: node01: + bootMode: UEFI macAddress: 52:54:00:b6:ed:31 bmcAddress: redfish+http://10.23.25.1:8000/redfish/v1/Systems/air-target-1 bmcUsername: root @@ -19,9 +20,9 @@ hosts: macAddresses: oam: 52:54:00:9b:27:4c pxe: 52:54:00:b6:ed:31 - bootMode: legacy - hardwareProfile: default # defined in the hostgenerator-m3 function + hardwareProfile: default # defined in the hostgenerator-m3 function node02: + bootMode: UEFI macAddress: 52:54:00:b6:ed:02 bmcAddress: redfish+http://10.23.25.2:8000/redfish/v1/Systems/air-target-2 bmcUsername: username @@ -32,4 +33,17 @@ hosts: macAddresses: oam: 52:54:00:9b:27:02 pxe: 52:54:00:b6:ed:02 - hardwareProfile: default # defined in the hostgenerator-m3 function + hardwareProfile: default # defined in the hardwareprofile-example function + node03: + bootMode: UEFI + macAddress: 52:54:00:b6:ed:23 + bmcAddress: redfish+http://10.23.25.1:8000/redfish/v1/Systems/air-worker-1 + bmcUsername: username + bmcPassword: password + ipAddresses: + oam-ipv4: 10.23.25.103 + pxe-ipv4: 10.23.24.103 + macAddresses: + oam: 52:54:00:9b:27:07 + pxe: 52:54:00:b6:ed:23 + hardwareProfile: default # defined in the hardwareprofile-example function diff --git a/manifests/site/test-site/target/workers/hostgenerator/host-generation.yaml b/manifests/site/test-site/target/workers/hostgenerator/host-generation.yaml new file mode 100644 index 0000000..e197b45 --- /dev/null +++ b/manifests/site/test-site/target/workers/hostgenerator/host-generation.yaml @@ -0,0 +1,10 @@ +# Site-level, phase-specific lists of hosts to generate +# This is used by the hostgenerator-m3 function to narrow down the site-level +# host-catalogue to just the hosts needed for a particular phase. +apiVersion: airshipit.org/v1alpha1 +kind: VariableCatalogue +metadata: + name: host-generation-catalogue +hosts: + m3: + - node03 diff --git a/manifests/site/test-site/target/workers/hostgenerator/kustomization.yaml b/manifests/site/test-site/target/workers/hostgenerator/kustomization.yaml new file mode 100644 index 0000000..5acc9b5 --- /dev/null +++ b/manifests/site/test-site/target/workers/hostgenerator/kustomization.yaml @@ -0,0 +1,9 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../../../../../../../airshipctl/manifests/function/hostgenerator-m3 + - ../../../shared/catalogues/ + - host-generation.yaml + +transformers: + - ../../../../../../../airshipctl/manifests/function/hostgenerator-m3/replacements diff --git a/manifests/site/test-site/target/workers/kubeadmconfigtemplate.yaml b/manifests/site/test-site/target/workers/kubeadmconfigtemplate.yaml new file mode 100644 index 0000000..4bd8d4b --- /dev/null +++ b/manifests/site/test-site/target/workers/kubeadmconfigtemplate.yaml @@ -0,0 +1,48 @@ +apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3 +kind: KubeadmConfigTemplate +metadata: + name: worker-1 +spec: + template: + spec: + joinConfiguration: + nodeRegistration: + name: '{{ ds.meta_data.name }}' + kubeletExtraArgs: + node-labels: 'metal3.io/uuid={{ ds.meta_data.uuid }},node-type=worker' + provider-id: 'metal3://{{ ds.meta_data.uuid }}' + feature-gates: "IPv6DualStack=true" + ntp: + enabled: true + servers: + - 135.188.34.124 + - 135.38.244.16 + - 135.188.34.84 + preKubeadmCommands: + - echo 'root:r00tme' | chpasswd + - echo 'ubuntu:r00tme' | chpasswd + - | + cat <