diff options
author | Manuel Buil <mbuil@suse.com> | 2018-10-23 15:41:35 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-10-23 15:41:35 +0000 |
commit | 471a2422aa270ebcee562ee7389adffa868f872f (patch) | |
tree | 2d3ee5c272980fc9b03b3e1a4dcb46f2cebac7a0 /scenarios/os-odl-sfc_osm/role/os-odl-sfc_osm/tasks/install-osm.yml | |
parent | 03334c4c2cdb42a469b174ffd8718189d5cc8907 (diff) | |
parent | 4c7e3e983bd92d3793658c5d04fabea140cf0d51 (diff) |
Merge "Create new scenario: os-odl-sfc_osm"
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.yml | 30 |
1 files changed, 30 insertions, 0 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 new file mode 100644 index 00000000..4f6b990a --- /dev/null +++ b/scenarios/os-odl-sfc_osm/role/os-odl-sfc_osm/tasks/install-osm.yml @@ -0,0 +1,30 @@ +--- +# SPDX-license-identifier: Apache-2.0 +############################################################################## +# Copyright (c) 2018 Venkata Harshavardhan Reddy Allu 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 }} + 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 + +- name: install OSM + become_user: "{{ osm_install_user }}" + become: yes + command: "/bin/bash ./install_osm.sh --nolxd -y " + args: + chdir: "/home/{{ osm_install_user }}" + creates: "/usr/bin/osm" + +- name: Create osmrc file + copy: + src: osmrc + dest: "{{ osmrc_file_dest }}" |