Add a possibility to define extra repo during bootstrap
This patch adds a possibility to define BOOTSTRAP_EXTRA_REPO_PARAMS
for openstack.createHeatStack method in order to to add extra repo
during bootstrap
Change-Id: Id88cb22bb54c2168b612daf2194a1986d0c8c7d5
Related-PROD: PROD-16385
diff --git a/cloud-deploy-pipeline.groovy b/cloud-deploy-pipeline.groovy
index 525c971..d051b30 100644
--- a/cloud-deploy-pipeline.groovy
+++ b/cloud-deploy-pipeline.groovy
@@ -38,6 +38,10 @@
* required for STACK_TYPE=physical
* SALT_MASTER_URL URL of Salt master
+ * BOOTSTRAP_EXTRA_REPO_PARAMS optional parameter to define a list of extra repos with parameters
+ * which have to be added during bootstrap.
+ * Format: repo 1, repo priority 1, repo pin 1; repo 2, repo priority 2, repo pin 2;
+
* Test settings:
* TEST_K8S_API_SERVER Kubernetes API address
* TEST_K8S_CONFORMANCE_IMAGE Path to docker image with conformance e2e tests
@@ -168,6 +172,12 @@
envParams.put('cfg_formula_pkg_revision', FORMULA_PKG_REVISION)
}
+ // put extra repo definitions
+ if (common.validInputParam('BOOTSTRAP_EXTRA_REPO_PARAMS')) {
+ common.infoMsg("Setting additional repo during bootstrap to ${BOOTSTRAP_EXTRA_REPO_PARAMS}")
+ envParams.put('cfg_bootstrap_extra_repo_params', BOOTSTRAP_EXTRA_REPO_PARAMS)
+ }
+
openstack.createHeatStack(openstackCloud, STACK_NAME, STACK_TEMPLATE, envParams, HEAT_STACK_ENVIRONMENT, venv)
}