f60131cc09
Change-Id: Ib7a1691adf76d8f90996fcfe9cb9e2371bc138c4
34 lines
1.2 KiB
YAML
34 lines
1.2 KiB
YAML
---
|
|
# Copyright 2019 VEXXHOST, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- hosts: masters
|
|
tasks:
|
|
- name: Test kue-cli
|
|
shell: >-
|
|
kue-cli --user {{ ansible_user }} {% for master in groups['masters'] %}--master {{ hostvars[master]['ansible_host'] }} {% endfor %}{% for minion in groups['minions'] %}--minion {{ hostvars[minion]['ansible_host'] }} {% endfor %}
|
|
args:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
|
|
- hosts: masters[0]
|
|
tasks:
|
|
- name: Wait for all nodes to get ready
|
|
shell: kubectl get nodes
|
|
register: _kubectl_get_nodes
|
|
retries: 30
|
|
delay: 3
|
|
until: '"NotReady" not in _kubectl_get_nodes.stdout'
|
|
|
|
- name: Get all nodes
|
|
shell: kubectl get nodes |