Switch computes in cicd-k8s deployments from generation to inventory
Auto-registration for k8s compute nodes has been introduced to CC,
but there is no inventory provider to use it for 'auto' registration.
For testing, use custom inventory provider (fuel-devops) and mapping
(environment-templates),
Change-Id: I2665040ae772003e98336697383d355577f16e57
diff --git a/tcp_tests/templates/cookied-cicd-k8s-genie/environment-context-k8s-genie.yaml b/tcp_tests/templates/cookied-cicd-k8s-genie/environment-context-k8s-genie.yaml
index 66d7cec..4c01f4f 100644
--- a/tcp_tests/templates/cookied-cicd-k8s-genie/environment-context-k8s-genie.yaml
+++ b/tcp_tests/templates/cookied-cicd-k8s-genie/environment-context-k8s-genie.yaml
@@ -109,9 +109,8 @@
ens4:
role: single_ctl
- # Generator-based computes. For compatibility only
- cmp<<count>>:
- reclass_storage_name: kubernetes_compute_rack01
+ cmp001:
+ reclass_storage_name: kubernetes_compute_node01
roles:
- kubernetes_compute
- linux_system_codename_xenial
@@ -121,3 +120,17 @@
role: single_dhcp
ens4:
role: single_ctl
+ single_address: ${_param:kubernetes_compute_node01_address}
+
+ cmp002:
+ reclass_storage_name: kubernetes_compute_node02
+ roles:
+ - kubernetes_compute
+ - linux_system_codename_xenial
+ - salt_master_host
+ interfaces:
+ ens3:
+ role: single_dhcp
+ ens4:
+ role: single_ctl
+ single_address: ${_param:kubernetes_compute_node02_address}