Merge "Add install zookeeper role; use for nodepool-builder testing"

This commit is contained in:
Zuul 2020-03-10 00:12:14 +00:00 committed by Gerrit Code Review
commit b2b0cc1c83
7 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,4 @@
An ansible role to install Zookeeper
**Role Variables**

View File

@ -0,0 +1,11 @@
- name: Install zookeeper
package:
name:
- zookeeper
- zookeeperd
state: present
- name: Start zookeeper service
service:
name: zookeeper
state: started

View File

@ -1,3 +1,10 @@
nodepool base setup nodepool base setup
**Role Variables** **Role Variables**
.. zuul:rolevar:: nodepool_base_install_zookeeper
Install zookeeper to the node. This is not expected to be used in
production, where the nodes would connect to an externally
configured zookeeper instance. It can be useful for basic loopback
tests in the gate, however.

View File

@ -0,0 +1 @@
nodepool_base_install_zookeeper: False

View File

@ -11,6 +11,11 @@
create_home: yes create_home: yes
shell: /bin/bash shell: /bin/bash
- name: Install zookeeper
include_role:
name: install-zookeeper
when: nodepool_base_install_zookeeper
# NOTE(ianw) : A note on testing; we have some configurations for # NOTE(ianw) : A note on testing; we have some configurations for
# system-config-run-nodepool test hosts committed to project-config. # system-config-run-nodepool test hosts committed to project-config.
# Since this is a protected repo we can't speculatively test, which is # Since this is a protected repo we can't speculatively test, which is

View File

@ -92,6 +92,7 @@
- host_vars/mirror-update01.opendev.org.yaml - host_vars/mirror-update01.opendev.org.yaml
- host_vars/backup-test01.opendev.org.yaml - host_vars/backup-test01.opendev.org.yaml
- host_vars/backup-test02.opendev.org.yaml - host_vars/backup-test02.opendev.org.yaml
- host_vars/nb01-test.opendev.org.yaml
- name: Display group membership - name: Display group membership
command: ansible localhost -m debug -a 'var=groups' command: ansible localhost -m debug -a 'var=groups'
- name: Run base.yaml - name: Run base.yaml

View File

@ -0,0 +1 @@
nodepool_base_install_zookeeper: True