Expose SALT_MASTER_OPT_WORKER_THREADS env variable
- For use of automatic batch size decision
Change-Id: I767430950ac53b5f0645669908fd87bf98f43652
Related: PROD-27850 (PROD:27850)
diff --git a/cloud-deploy-pipeline.groovy b/cloud-deploy-pipeline.groovy
index 1412a76..ede657b 100644
--- a/cloud-deploy-pipeline.groovy
+++ b/cloud-deploy-pipeline.groovy
@@ -328,6 +328,8 @@
// Setup virtualenv for pepper
python.setupPepperVirtualenv(venvPepper, SALT_MASTER_URL, SALT_MASTER_CREDENTIALS)
+ // Expose number of worker threads to the env variable
+ env['SALT_MASTER_OPT_WORKER_THREADS'] = salt.getReturnValues(salt.getPillar(venvPepper, "I@salt:master", "salt:master:worker_threads", 0))
}