aboutsummaryrefslogtreecommitdiffstats
path: root/scenarios/os-odl-sfc_osm/role/os-odl-sfc_osm/tasks/post-deployment.yml
blob: a181ce771959df3edce1fc2c68a1aad988d86814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2018 SUSE Linux GmbH 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: Configure opnfv host
  include: configure-opnfvhost.yml

- name: Install OSM
  include: install-osm.yml

- name: Register OpenStack as VIM
  include: register-vim.yml

# fetch ODL variables for functest
- name: Fetch the ip of the neutron server container
  shell: 'grep controller00_neutron_server_container -n1 /etc/openstack_deploy/openstack_inventory.json | grep ansible_host | cut -d":" -f2 | cut -d "\"" -f2'
  register: ip
  changed_when: False
- name: Fetch the ml2_conf.ini to process ODL variables
  command: "scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no {{ ip.stdout }}:/etc/neutron/plugins/ml2/ml2_conf.ini /tmp/ml2_conf.ini"
  changed_when: False