X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2FRO%2Finstall;fp=jenkins%2FRO%2Finstall;h=2f6be01e0ab59b203be42d75a3dbc8cd37412ba4;hb=a1fc4570e6196978b0de679c5e659748ba407e6d;hp=0000000000000000000000000000000000000000;hpb=32a79fc47428f57ee4c706758f5ac568419674cc;p=osm%2Fdevops.git diff --git a/jenkins/RO/install b/jenkins/RO/install new file mode 100755 index 00000000..2f6be01e --- /dev/null +++ b/jenkins/RO/install @@ -0,0 +1,69 @@ +#!/bin/bash +# +# Copyright 2016 Telefónica Investigación y Desarrollo, S.A.U. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Authors: +# - Gerardo Garcia - gerardo.garciadeblas@telefonica.com +# + +HERE=$(realpath $(dirname $0)) +OSM_JENKINS=$(dirname $HERE) +. $OSM_JENKINS/common/all_funcs + +# SET YOUR MDG repository name here +export OSM_MDG=RO +OSM_load_config + +# Installation starts here +apt-get update + +apt-get -y install python-pip +pip install --upgrade pip +pip install pyvcloud +pip install progressbar +pip install prettytable +pip install pyvmomi + +#Dependencies below will be installed directly from packages and must be removed +#apt-get -y install libmysqlclient-dev libssl-dev libffi-dev mysql-client +#apt-get -y install python-yaml python-bottle python-mysqldb python-jsonschema python-paramiko python-argcomplete python-requests python-logutils +#apt-get -y install python-cinderclient python-glanceclient python-keystoneclient python-neutronclient python-novaclient python-mysqldb python-yaml +#apt-get -y install python-boto + +#Release ONE +curl https://osm-download.etsi.org/repository/osm/debian/ReleaseONE/OSM%20ETSI%20Release%20Key.gpg |apt-key add - +add-apt-repository -y "deb https://osm-download.etsi.org/repository/osm/debian/ReleaseONE unstable RO openvim" +#add-apt-repository -y "deb https://osm-download.etsi.org/repository/osm/debian/ReleaseONE stable RO openvim" + +#Release TWO +#curl https://osm-download.etsi.org/repository/osm/debian/ReleaseTWO/OSM%20ETSI%20Release%20Key.gpg |apt-key add - +#add-apt-repository -y "deb https://osm-download.etsi.org/repository/osm/debian/ReleaseTWO stable RO openvim" + +apt-get update +apt-get -y install python-lib-osm-openvim +apt-get -y install python-osm-ro + +OSMLIBOVIM_PATH=`python -c 'import lib_osm_openvim; print lib_osm_openvim.__path__[0]'` || FATAL "lib-osm-openvim was not properly installed" +OSMRO_PATH=`python -c 'import osm_ro; print osm_ro.__path__[0]'` || FATAL "osm-ro was not properly installed" + +${OSMRO_PATH}/database_utils/install-db-server.sh --updatedb || FATAL "osm-ro db installation failed" +${OSMLIBOVIM_PATH}/database_utils/install-db-server.sh -u mano -p manopw -d mano_vim_db --updatedb || FATAL "lib-osm-openvim db installation failed" +service osm-ro restart + +RC=$? +INFO "done, RC=$RC" +exit $RC + +