blob: 376e8ea72d142c29e3e1263d8aeff4b7310f9a96 [file] [log] [blame]
Andy Bavierc9ffc2a2018-05-04 12:27:09 -07001---
2
3# Copyright 2017-present Open Networking Foundation
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17- name: Chart dependencies
18 command: helm dep update ./xos-profiles/base-openstack
19 args:
20 chdir: "{{ ansible_env.HOME }}/cord/build/helm-charts"
21 tags:
22 - skip_ansible_lint
23
24- name: Install charts
25 command: helm upgrade --install {{ item.name }} {{ item.path }}
26 args:
27 chdir: "{{ ansible_env.HOME }}/cord/build/helm-charts"
28 with_items:
29 - { name: xos-core, path: ./xos-core }
30 - { name: base-openstack, path: ./xos-profiles/base-openstack }
31 - { name: onos-cord, path: "./onos -f configs/onos-cord.yaml" }
32 tags:
33 - skip_ansible_lint
34
35- name: Wait for ONOS to come up
36 shell: kubectl get pod | grep onos-cord | grep Running
37 register: result
38 until: result is success
39 retries: 30
40 delay: 10
41 tags:
42 - skip_ansible_lint
43
44- name: Add head node private key to ONOS (HACK - should be a secret or something)
45 shell: |
46 HEAD_PRIVKEY={{ ansible_env.HOME}}/cord/build/scenarios/preppedkube/.vagrant/machines/head1/libvirt/private_key
47 ONOS_CORD_POD=$( kubectl get pod | grep onos-cord | awk '{print $1}' )
48 kubectl cp $HEAD_PRIVKEY $ONOS_CORD_POD:/root/node_key
49 tags:
50 - skip_ansible_lint