aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/sdc
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-12-18 09:56:13 -0800
committerVictor Morales <victor.morales@intel.com>2017-12-23 03:22:34 -0500
commitfa9eb9c5c50ca147504cb97226007b82f6909b8a (patch)
tree5a1b962e79074f796c441e37612d6a9587d47460 /bootstrap/vagrant-onap/lib/sdc
parentf1ffdbc27f2cd05b487c7857362bf2018a513b21 (diff)
Add OOM provisioning script
The instructions to provision a ONAP Operations Manager environment was included into the vagrant-onap tool. This script requires a specific docker version besides some tasks that wait for certain services. Change-Id: I39f0b7947e7c87d8aa44ffa93cdb414d700379bd Signed-off-by: Victor Morales <victor.morales@intel.com> Co-Authored-By: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com> Issue-ID: INT-370
Diffstat (limited to 'bootstrap/vagrant-onap/lib/sdc')
-rwxr-xr-xbootstrap/vagrant-onap/lib/sdc20
1 files changed, 1 insertions, 19 deletions
diff --git a/bootstrap/vagrant-onap/lib/sdc b/bootstrap/vagrant-onap/lib/sdc
index 9b0a69ee4..fee583d79 100755
--- a/bootstrap/vagrant-onap/lib/sdc
+++ b/bootstrap/vagrant-onap/lib/sdc
@@ -2,24 +2,6 @@
source /var/onap/functions
-# _mount_external_partition() - Create partition and mount the external volume
-function _mount_external_partition {
- cat <<EOL > /tmp/sdc_ext_volume_partitions.txt
-# partition table of /dev/sdb
-unit: sectors
-
-/dev/sdb1 : start= 2048, size=209713152, Id=83
-/dev/sdb2 : start= 0, size= 0, Id= 0
-/dev/sdb3 : start= 0, size= 0, Id= 0
-/dev/sdb4 : start= 0, size= 0, Id= 0
-EOL
- sfdisk --force /dev/sdb < /tmp/sdc_ext_volume_partitions.txt
- mkfs -t ext4 /dev/sdb1
- mkdir -p /data
- mount /dev/sdb1 /data
- echo "/dev/sdb1 /data ext4 errors=remount-ro,noatime,barrier=0 0 1" >> /etc/fstab
-}
-
# _init_data_folders() - Function that initialize the data folders
function _init_data_folders {
mkdir -p /data/environments
@@ -82,7 +64,7 @@ function install_sdc {
# init_sdc() - Function that initialize SDC services
function init_sdc {
- _mount_external_partition
+ mount_external_partition sdb /data/
if [[ "$clone_repo" == "True" ]]; then
clone_repos "sdc"
if [[ "$compile_repo" == "True" ]]; then