Merge "Bootstrap nodes using windmill-ops"
This commit is contained in:
commit
677bf183f8
|
@ -21,6 +21,7 @@
|
|||
- openstack/diskimage-builder
|
||||
- openstack/openstacksdk
|
||||
- openstack/windmill
|
||||
- openstack/windmill-ops
|
||||
- openstack-infra/gear
|
||||
- openstack-infra/nodepool
|
||||
- openstack-infra/zuul
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -6,6 +6,11 @@
|
|||
chdir: "{{ windmill_src_dir }}"
|
||||
shell: tox -evenv -- ansible-playbook -i inventory/testing/hosts tests/playbooks/bastion/site.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 }}"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue