Adding the procedure to created devops virtual env
The patch adds the function to create virtual environment for
devops application.
Related-PROD: PROD-15586
Change-Id: I9f7718177ccc74a8297adc38da3f77af9d7636a0
diff --git a/src/com/mirantis/mk/Python.groovy b/src/com/mirantis/mk/Python.groovy
index caa3f3f..0d2287c 100644
--- a/src/com/mirantis/mk/Python.groovy
+++ b/src/com/mirantis/mk/Python.groovy
@@ -318,3 +318,14 @@
writeFile file: rcFile, text: rc
return rcFile
}
+
+/**
+ * Install devops in isolated environment
+ *
+ * @param path Path where virtualenv is created
+ * @param clean Define to true is the venv have to cleaned up before install a new one
+ */
+def setupDevOpsVenv(venv, clean=false) {
+ requirements = ['git+https://github.com/openstack/fuel-devops.git']
+ setupVirtualenv(venv, 'python2', requirements, null, false, clean)
+}