Refactor bootstrap-hwconfig
Hardware configuration is currently bootstrapped by engine
playbook and it only deals with PDF/IDF files. Heat files
are fetched by Heat itself which is more appropriate since
hardware configuration is provisioner specific and needs to be
dealt by the the provisioner rather than engine.
Apart from moving things to where they fit, this is probably
the last change that enables us to start working on generic
inventory generation as the engine and provisioners are separated
from each other, making it easier to implement necessary
changes.
This change
- removes engine bootstrap-hwconfig tasks and roles
- renames engine bootstrap-configuration playbook and role to
bootstrap-swconfig to match what we actually do, just SDF stuff
- creates a new playbook and corresponding role named bootstrap-hwconfig
for bifrost to collect PDF/IDF under config_path and symlink to
inventory/group_vars/all
- creates a new playbook and corresponding role named bootstrap-hwconfig
for heat by renaming install-configure-heat role
- creates a separate/new/simplified IDF for Heat so we completely cut
connection/reliance of Heat to regular PDF/IDF
- takes out create-stack role and converts it to its own playbook so
bootstrap-hwconfig and create-stack playbooks are run explicitly in provision.sh
- heat files are kept as is in install-configure-heat/files since
jenkins jobs still use those. jobs will be adapted once this change passes
the verifition and the folder install-configure-heat will be deleted.
Change-Id: Ia18f90e0d83511d10880c1564351be157d3bb122
diff --git a/playbooks/roles/bootstrap-hwconfig/files/heat-idf.yaml b/playbooks/roles/bootstrap-hwconfig/files/heat-idf.yaml
new file mode 100644
index 0000000..d74c05b
--- /dev/null
+++ b/playbooks/roles/bootstrap-hwconfig/files/heat-idf.yaml
@@ -0,0 +1,39 @@
+---
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 The Nordix Foundation. All rights reserved.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+idf:
+ version: 0.1
+ kubespray: &idf_kubespray
+ nodes_roles:
+ node1: [k8s-cluster, kube-master, etcd, vault]
+ node2: [k8s-cluster, kube-node]
+ groups:
+ k8s-cluster:
+ - kube-node
+ - kube-master
+ hostnames:
+ node1: master0
+ node2: node0
+
+engine:
+ pod_name: vpod
+
+ installers:
+ kubespray: *idf_kubespray
+
+# vim: set ts=2 sw=2 expandtab: