aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2018-10-18 11:53:14 +0200
committerManuel Buil <mbuil@suse.com>2018-10-24 12:59:10 +0000
commit83d796df436db741f2ee72792b6cf3b0da4bf78d (patch)
treeeb3d2d757c7aba7624854785e8450c743dc9a0db
parent5ebd2524221e13cf55af255f1becc763564d7619 (diff)
Add post-provision playbook to pass ml2_conf.ini
Functest requires ODL variables to run the ODL healthcheck which is mandatory for all ODL scenarios We require this patch to be merged first: https://gerrit.opnfv.org/gerrit/#/c/63175/ Change-Id: Ibb95d621f952c1d921dcb175fcf6c8ad30c2e234 Signed-off-by: Manuel Buil <mbuil@suse.com>
-rw-r--r--scenarios/os-odl-nofeature/role/os-odl-nofeature/tasks/post-deployment.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/scenarios/os-odl-nofeature/role/os-odl-nofeature/tasks/post-deployment.yml b/scenarios/os-odl-nofeature/role/os-odl-nofeature/tasks/post-deployment.yml
new file mode 100644
index 0000000..837a8ee
--- /dev/null
+++ b/scenarios/os-odl-nofeature/role/os-odl-nofeature/tasks/post-deployment.yml
@@ -0,0 +1,17 @@
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2018 SUSE Linux GmbH
+# 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: "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
+ change_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"
+ change_when: False