summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2018-04-06 10:42:06 -0500
committerJorge Hernandez <jh1730@att.com>2018-04-06 10:42:06 -0500
commitf7d36027db7475454204da0f81865420970c3211 (patch)
tree77dac3d2e6f440d94d9f65283d66f3ef2a5a1b71
parentf629942716821374d8c7d17567a89ee3896770ad (diff)
heat install controllop app + brmsgw dep version
Change-Id: Ib641d1c50024c114a50d40954fc4b2dde3159d5c Issue-ID: POLICY-735 Signed-off-by: Jorge Hernandez <jh1730@att.com>
-rw-r--r--boot/policy_vm_init.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/boot/policy_vm_init.sh b/boot/policy_vm_init.sh
index 80e1b644..b6b7d1fc 100644
--- a/boot/policy_vm_init.sh
+++ b/boot/policy_vm_init.sh
@@ -38,6 +38,17 @@ export DOCKER_REPOSITORY=${NEXUS_DOCKER_REPO}
cd /opt/policy
git pull
+# download controlloop application
+
+export ARTIFACT_VERSION=$(cat /opt/config/artifacts_version.txt)
+
+chmod +x /opt/policy/config/drools/apps-install.sh
+/opt/policy/config/drools/apps-install.sh controlloop ${ARTIFACT_VERSION} /opt/policy/config/drools
+
+# ensure brmsgw dependency configuration is set up correctly
+
+sed -i -e "s/^BRMS_DEPENDENCY_VERSION=.*$/BRMS_DEPENDENCY_VERSION=${ARTIFACT_VERSION}/g" /opt/policy/config/pe/brmsgw.conf
+
chmod +x config/drools/drools-tweaks.sh
if [ -e /opt/config/public_ip.txt ]