Add target phase to test-site

This adapts work from airshipctl:
https://review.opendev.org/#/c/738291/

Change-Id: I8213cfbf651156320ef46cbab3b6d325fde185d0
This commit is contained in:
Matt McEuen 2020-08-06 08:47:26 -05:00 committed by Drew Walters
parent d5a98b7ad7
commit 5edbcba972
7 changed files with 59 additions and 1 deletions

View File

@ -2,7 +2,6 @@
kind: ConfigMap
apiVersion: v1
metadata:
labels:
name: ironic-vars
data:
PROVISIONING_IP: "10.23.24.101"

View File

@ -0,0 +1,4 @@
resources:
- ../../../../type/airship-core/ephemeral/initinfra
patchesStrategicMerge:
- patch_bmo_config.yaml

View File

@ -0,0 +1,8 @@
---
kind: ConfigMap
apiVersion: v1
metadata:
name: ironic-vars
data:
PROVISIONING_IP: "10.23.25.102"
DHCP_RANGE: "10.23.25.200,10.23.25.250"

View File

@ -0,0 +1,5 @@
resources:
- ../../shared/clusterctl
- ../../../../../../airshipctl/manifests/function/baremetal-operator/
commonLabels:
airshipit.org/stage: initinfra

View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set -ex
: ${AIRSHIPCTL_PROJECT:="../airshipctl"}
cd ${AIRSHIPCTL_PROJECT}
./tools/deployment/31_deploy_initinfra_target_node.sh

View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set -ex
: ${AIRSHIPCTL_PROJECT:="../airshipctl"}
cd ${AIRSHIPCTL_PROJECT}
./tools/deployment/32_cluster_init_target_node.sh

View File

@ -69,6 +69,8 @@
- ./tools/deployment/25_deploy_ephemeral_node.sh
- ./tools/deployment/26_deploy_metal3_capi_ephemeral_node.sh
- ./tools/deployment/30_deploy_controlplane.sh
- ./tools/deployment/31_deploy_initinfra_target_node.sh
- ./tools/deployment/32_cluster_init_target_node.sh
serve_dir: /srv/iso
serve_port: 8099
voting: false