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-calico-sl/environment-context-k8s-sl.yaml b/tcp_tests/templates/cookied-cicd-k8s-calico-sl/environment-context-k8s-sl.yaml
index 2b89364..0a07a81 100644
--- a/tcp_tests/templates/cookied-cicd-k8s-calico-sl/environment-context-k8s-sl.yaml
+++ b/tcp_tests/templates/cookied-cicd-k8s-calico-sl/environment-context-k8s-sl.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,6 +120,20 @@
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}
mon01:
reclass_storage_name: stacklight_server_node01