aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/functions
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-08-22 14:39:00 -0500
committerVictor Morales <victor.morales@intel.com>2017-08-22 14:39:00 -0500
commit7ae05a4cc53bf3298090ade8091485ce2388af1f (patch)
tree3f7b8e161765cf8d70ebccfc068ecf01f2033a2f /bootstrap/vagrant-onap/lib/functions
parent9fd0a310dc68031a2feeb397ee7a720a0381fece (diff)
Fixed Setup Titan AAI process
The way to configure properties files was wrong causing problems during the DB creation. This change files that function as well as others related with that function. Change-Id: I5cc637e170b64e15fff5de4cb04bdcbd2506ea87 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: INT-18
Diffstat (limited to 'bootstrap/vagrant-onap/lib/functions')
-rwxr-xr-xbootstrap/vagrant-onap/lib/functions18
1 files changed, 9 insertions, 9 deletions
diff --git a/bootstrap/vagrant-onap/lib/functions b/bootstrap/vagrant-onap/lib/functions
index 709d7ebc0..16e774178 100755
--- a/bootstrap/vagrant-onap/lib/functions
+++ b/bootstrap/vagrant-onap/lib/functions
@@ -58,15 +58,12 @@ function clone_repo {
# install_dev_tools() - Install basic dependencies
function install_dev_tools {
- install_package apt-transport-https
- install_package ca-certificates
- install_package curl
+ install_packages apt-transport-https ca-certificates curl
}
# _install_bind() - Install bind utils
function _install_bind {
- install_package bind9
- install_package bind9utils
+ install_packages bind9 bind9utils
}
# install_java() - Install java binaries
@@ -76,6 +73,10 @@ function install_java {
fi
install_package software-properties-common
add-apt-repository -y ppa:openjdk-r/ppa
+
+ # Remove Java 7
+ uninstall_packages default-jre openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless
+
install_package openjdk-8-jdk
# ca-certificates-java is not a dependency in the Oracle JDK/JRE so this must be explicitly installed.
/var/lib/dpkg/info/ca-certificates-java.postinst configure
@@ -91,8 +92,8 @@ function install_maven {
add-apt-repository -y ppa:andrei-pozolotin/maven3
install_package maven3
- # Force Maven3 to use jdk8
- apt-get purge openjdk-7-jdk -y
+ # Remove Java 7
+ uninstall_package openjdk-7-jdk
_configure_maven
}
@@ -124,8 +125,7 @@ function install_nodejs {
# install_python() - Install Python 2.7 and other tools necessary for development.
function install_python {
- install_package python2.7
- install_package python-dev
+ install_packages python2.7 python-dev
}
# _install_pip() - Install Python Package Manager