From 740e0597d11e600ad9c0c1d750b74006776637fd Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Thu, 19 Apr 2018 14:05:41 +0200 Subject: [PATCH] install_osm.sh: updated docker env file generation Change-Id: Id3cc7d1b8516c4f119dbf3d3185a583321b76140 Signed-off-by: garciadeblas --- installers/docker/{lcm.env => __lcm__.env} | 0 installers/docker/{mon.env => __mon__.env} | 0 installers/docker/{ro-db.env => __ro-db__.env} | 0 installers/docker/{ro.env => __ro__.env} | 0 installers/install_osm.sh | 10 +++++----- 5 files changed, 5 insertions(+), 5 deletions(-) rename installers/docker/{lcm.env => __lcm__.env} (100%) rename installers/docker/{mon.env => __mon__.env} (100%) rename installers/docker/{ro-db.env => __ro-db__.env} (100%) rename installers/docker/{ro.env => __ro__.env} (100%) diff --git a/installers/docker/lcm.env b/installers/docker/__lcm__.env similarity index 100% rename from installers/docker/lcm.env rename to installers/docker/__lcm__.env diff --git a/installers/docker/mon.env b/installers/docker/__mon__.env similarity index 100% rename from installers/docker/mon.env rename to installers/docker/__mon__.env diff --git a/installers/docker/ro-db.env b/installers/docker/__ro-db__.env similarity index 100% rename from installers/docker/ro-db.env rename to installers/docker/__ro-db__.env diff --git a/installers/docker/ro.env b/installers/docker/__ro__.env similarity index 100% rename from installers/docker/ro.env rename to installers/docker/__ro__.env diff --git a/installers/install_osm.sh b/installers/install_osm.sh index e2605103..6720357a 100755 --- a/installers/install_osm.sh +++ b/installers/install_osm.sh @@ -522,11 +522,11 @@ function generate_docker_env_files() { OSMLCM_VCA_HOST=`juju show-controller|grep api-endpoints|awk -F\' '{print $2}'|awk -F\: '{print $1}'` OSMLCM_VCA_SECRET=`grep password /home/ubuntu/.local/share/juju/accounts.yaml |awk '{print $2}'` MYSQL_ROOT_PASSWORD=`date +%s | sha256sum | base64 | head -c 32` - echo "OSMLCM_VCA_HOST=${OSMLCM_VCA_HOST}" > ${OSM_DEVOPS}/installers/docker/lcm.env - echo "OSMLCM_VCA_SECRET=${OSMLCM_VCA_SECRET}" >> ${OSM_DEVOPS}/installers/docker/lcm.env - echo "MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}" > ${OSM_DEVOPS}/installers/docker/ro-db.env - echo "RO_DB_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}" > ${OSM_DEVOPS}/installers/docker/ro.env - echo "OS_NOTIFIER_URI=http://${DEFAULT_IP}:8662" > ${OSM_DEVOPS}/installers/docker/mon.env + sudo echo "OSMLCM_VCA_HOST=${OSMLCM_VCA_HOST}" > ${OSM_DEVOPS}/installers/docker/lcm.env + sudo echo "OSMLCM_VCA_SECRET=${OSMLCM_VCA_SECRET}" >> ${OSM_DEVOPS}/installers/docker/lcm.env + sudo echo "MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}" > ${OSM_DEVOPS}/installers/docker/ro-db.env + sudo echo "RO_DB_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}" > ${OSM_DEVOPS}/installers/docker/ro.env + sudo echo "OS_NOTIFIER_URI=http://${DEFAULT_IP}:8662" > ${OSM_DEVOPS}/installers/docker/mon.env echo "Finished generation of docker env files" } -- 2.25.1