X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=scenarios%2Fos-nosdn-osm%2Frole%2Fos-nosdn-osm%2Ftasks%2Fregister-vim.yml;fp=scenarios%2Fos-nosdn-osm%2Frole%2Fos-nosdn-osm%2Ftasks%2Fregister-vim.yml;h=5b68e52cd0ea1343bcb41e3eb897c4f28273d612;hb=e207c0d34096fa093a22da82fc6f7e50b6eafa87;hp=0000000000000000000000000000000000000000;hpb=83d796df436db741f2ee72792b6cf3b0da4bf78d;p=releng-xci-scenarios.git diff --git a/scenarios/os-nosdn-osm/role/os-nosdn-osm/tasks/register-vim.yml b/scenarios/os-nosdn-osm/role/os-nosdn-osm/tasks/register-vim.yml new file mode 100644 index 0000000..5b68e52 --- /dev/null +++ b/scenarios/os-nosdn-osm/role/os-nosdn-osm/tasks/register-vim.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 +############################################################################## + +# This is a simple fix to wait for the OSM services in +# the docker containers to start functioning as expected. +# TODO: Once healthchecks are added to the OSM +# container stack, use them to identify the status +# of the containers and modify this task. +- name: wait till the OSM services are ready + wait_for: timeout=120 + delegate_to: localhost + +- name: register OpenStack as VIM + shell: ". {{ osmrc_file_dest }} ; + osm vim-create \ + --name openstack-site \ + --user admin \ + --password {{ openrc_os_password }} \ + --tenant admin \ + --account_type openstack \ + --auth_url {{ openrc_os_auth_url }} \ + --config='{insecure: true}'" + changed_when: False