summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2018-04-06 15:52:30 +0000
committerGerrit Code Review <gerrit@onap.org>2018-04-06 15:52:30 +0000
commitdb228e6370e5257ca59e4f0e7154f45991c7defa (patch)
tree34263c70d99548fa37df4cb867aa30163fe0f280
parentbb96b88f82310e48bee976829790c139d7524802 (diff)
parentf7d36027db7475454204da0f81865420970c3211 (diff)
Merge "heat install controllop app + brmsgw dep version"
-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 a772a502..3803a83d 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 ]