Register OpenStack as VIM to OSM
[releng-xci-scenarios.git] / scenarios / os-nosdn-osm / role / os-nosdn-osm / tasks / register-vim.yml
1 ---
2 # SPDX-license-identifier: Apache-2.0
3 ##############################################################################
4 # Copyright (c) 2018 Venkata Harshavardhan Reddy Allu and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 # This is a simple fix to wait for the OSM services in
12 # the docker containers to start functioning as expected.
13 # TODO: Once healthchecks are added to the OSM
14 # container stack, use them to identify the status
15 # of the containers and modify this task.
16 - name: wait till the OSM services are ready
17   wait_for: timeout=120
18   delegate_to: localhost
19
20 - name: register OpenStack as VIM
21   shell: ". {{ osmrc_file_dest }} ;
22     osm vim-create \
23     --name openstack-site \
24     --user admin \
25     --password {{ openrc_os_password }} \
26     --tenant admin \
27     --account_type openstack \
28     --auth_url {{ openrc_os_auth_url }} \
29     --config='{insecure: true}'"
30   changed_when: False