Add support for deployment on multiple OS distros 43/71843/6
authorRihab Banday <rihab.banday@ericsson.com>
Tue, 2 Feb 2021 16:16:57 +0000 (17:16 +0100)
committerRihab Banday <rihab.banday@ericsson.com>
Tue, 4 May 2021 07:53:47 +0000 (07:53 +0000)
This patch introduces a variable to support
deployments on different OS distros.

Change-Id: I9cad126a57acbf662c4c97cfc5a275594f4d3f06
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71843
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
functions.sh
playbooks/roles/pre-install/vars/Debian.yml

index 1a07ec0..6740ca2 100755 (executable)
@@ -183,7 +183,7 @@ if [ ! -d "${PROJECT_ROOT}/engine" ]; then
     ${PROJECT_ROOT}/engine/engine
 fi
 cd ${PROJECT_ROOT}/engine/engine
-./deploy.sh -s ironic -d centos7 \
+./deploy.sh -s ironic -d ${DISTRO} \
 -p file:///${PROJECT_ROOT}/engine/engine/pdf.yaml \
 -i file:///${PROJECT_ROOT}/engine/engine/idf.yaml
 EOF
index 1a7144b..0ff9b92 100644 (file)
@@ -4,3 +4,4 @@ bmra_pkgs:
   - pciutils
   - ethtool
   - python3
+  - unattended-upgrades