aboutsummaryrefslogtreecommitdiffstats
path: root/scenarios/os-odl-sfc_osm/role/os-odl-sfc_osm/tasks/install-osm.yml
diff options
context:
space:
mode:
authorVenkata Harshavardhan Reddy Allu <venkataharshavardhan_ven@srmuniv.edu.in>2018-10-26 20:01:37 +0530
committerVenkata Harshavardhan Reddy Allu <venkataharshavardhan_ven@srmuniv.edu.in>2018-10-30 01:00:00 +0530
commit6c11ccaa5e9f036a1b56926d80aaccb3dc5e3d78 (patch)
treef9ceeb6112e536bed125b12a01f53eed704b84db /scenarios/os-odl-sfc_osm/role/os-odl-sfc_osm/tasks/install-osm.yml
parent59697c6c0425b3179f0a51e92de7dc035c1ff38c (diff)
Improve ansible tasks and fix license headers
This patch does two things: 1. improve the ansible tasks: - register Openstack as VIM - create osmrc file - install OSM (master) 2. fix license headers in unit tests installer-type:osa deploy-scenario:os-odl-sfc_osm Change-Id: I02297dae2b0108397541cedeb2f47183f1df99fc Signed-off-by: Venkata Harshavardhan Reddy Allu <venkataharshavardhan_ven@srmuniv.edu.in>
Diffstat (limited to 'scenarios/os-odl-sfc_osm/role/os-odl-sfc_osm/tasks/install-osm.yml')
-rw-r--r--scenarios/os-odl-sfc_osm/role/os-odl-sfc_osm/tasks/install-osm.yml22
1 files changed, 12 insertions, 10 deletions
diff --git a/scenarios/os-odl-sfc_osm/role/os-odl-sfc_osm/tasks/install-osm.yml b/scenarios/os-odl-sfc_osm/role/os-odl-sfc_osm/tasks/install-osm.yml
index 4f6b990a..5c12e333 100644
--- a/scenarios/os-odl-sfc_osm/role/os-odl-sfc_osm/tasks/install-osm.yml
+++ b/scenarios/os-odl-sfc_osm/role/os-odl-sfc_osm/tasks/install-osm.yml
@@ -1,30 +1,32 @@
---
# SPDX-license-identifier: Apache-2.0
##############################################################################
-# Copyright (c) 2018 Venkata Harshavardhan Reddy Allu and others.
+# Copyright (c) 2018 Ericsson AB and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-- name: get OSM installer {{ osm_release_version }}
+- name: clone OSM devops repo and checkout version {{ osm_devops_version }}
become_user: "{{ osm_install_user }}"
become: yes
- get_url:
- url: "https://osm-download.etsi.org/ftp/{{ osm_release_version }}/install_osm.sh"
- dest: "/home/{{ osm_install_user }}/install_osm.sh"
- mode: u+x
+ git:
+ repo: "{{ osm_devops_git_url }}"
+ dest: "{{ osm_devops_clone_location }}"
+ version: "{{ osm_devops_version }}"
- name: install OSM
become_user: "{{ osm_install_user }}"
become: yes
- command: "/bin/bash ./install_osm.sh --nolxd -y "
+ command: "/bin/bash ./full_install_osm.sh --test -b {{ osm_devops_version }} --nolxd -y"
args:
- chdir: "/home/{{ osm_install_user }}"
+ chdir: "{{ osm_devops_clone_location }}/installers"
creates: "/usr/bin/osm"
-- name: Create osmrc file
+- name: create osmrc file
copy:
- src: osmrc
dest: "{{ osmrc_file_dest }}"
+ content: |
+ export OSM_HOSTNAME=127.0.0.1
+ export OSM_OL005=True