Add OOM provisioning script
[integration.git] / bootstrap / vagrant-onap / vagrant_utils / postinstall.sh
index 89a69dd..3b5017a 100755 (executable)
@@ -1,15 +1,26 @@
 #!/bin/bash
 
-set -o xtrace
+if [[ "$debug" == "True" ]]; then
+    set -o xtrace
+fi
+
+if [[ "$1" == "openstack" ]]; then
+    source /var/onap/openstack
+    deploy_openstack
+    exit
+fi
 
 source /var/onap/functions
 
+update_repos
 create_configuration_files
-install_dev_tools
 configure_bind
 
 for serv in $@; do
     source /var/onap/${serv}
     configure_service ${serv}_serv.sh
     init_${serv}
+    echo "source /var/onap/${serv}" >> ~/.bashrc
 done
+
+echo "source /var/onap/functions" >> ~/.bashrc