Bootstrap nodes using windmill-ops

Change-Id: I1078056dcf30529da8da86217417dae84428ee3b
Depends-On: https://review.openstack.org/639109
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2019-02-26 12:44:39 -05:00
parent 267dc5ac5b
commit c77a8dee8f
5 changed files with 6 additions and 36 deletions

View File

@ -20,6 +20,7 @@
- openstack/diskimage-builder
- openstack/openstacksdk
- openstack/windmill
- openstack/windmill-ops
- openstack-infra/gear
- openstack-infra/nodepool
- openstack-infra/zuul

View File

@ -1,32 +0,0 @@
# Copyright 2016 Red Hat, 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.
---
- name: Bootstrap nodes
hosts: all:!bastion:!disabled
pre_tasks:
- name: Update apt cache
become: true
apt:
update_cache: true
upgrade: dist
when: ansible_os_family == 'Debian'
- name: Bootstrap python dependencies for windmill
hosts: all:!bastion:!zookeeper:!disabled
tasks:
- name: Setup openstack.virtualenv role
include_role:
name: openstack.virtualenv

View File

@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
---
- import_playbook: bootstrap.yaml
- import_playbook: statsd.yaml
- import_playbook: gear.yaml
- import_playbook: zookeeper.yaml

View File

@ -6,6 +6,11 @@
chdir: "{{ windmill_src_dir }}"
shell: tox -evenv -- ansible-playbook -i inventory/testing/hosts playbooks/bastion.yaml
- name: Bootstrap all nodes using windmill-ops
args:
chdir: "{{ zuul.projects['git.openstack.org/openstack/windmill-ops'].src_dir }}"
shell: "tox -evenv -- ansible-playbook -i {{ windmill_src_dir }}/inventory/testing/hosts playbooks/bootstrap/site.yaml"
- name: Run ansible-playbook for site.yaml
args:
chdir: "{{ windmill_src_dir }}"

View File

@ -26,9 +26,6 @@
- name: openstack.sudoers
src: git+https://git.openstack.org/openstack/ansible-role-sudoers
- name: openstack.virtualenv
src: git+https://git.openstack.org/openstack/ansible-role-virtualenv
- name: openstack.zookeeper
src: git+https://git.openstack.org/openstack/ansible-role-zookeeper