Add zuul-client config to schedulers

This adds a zuul-client config file as well as a convenience script
to execute the docker container to the schedulers.

Change-Id: Ief167c6b7f0407f5eaebecde552e8d91eb3d4ab9
This commit is contained in:
James E. Blair 2021-12-07 13:40:20 -08:00
parent d991865e58
commit dbc69021e2
4 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,3 @@
#!/bin/sh
docker run --rm -it --network=host -v /root/.config/zuul:/root/.config/zuul zuul/zuul-client --use-config opendev $*

View File

@ -88,6 +88,23 @@
vars:
logrotate_file_name: /var/log/zuul/gearman-server.log
- name: Install zuul-client script
copy:
src: zuul-client
dest: /usr/local/bin/zuul-client
mode: "0555"
- name: Make zuul-client config directory
file:
state: directory
path: /root/.config/zuul
- name: Install zuul-client config
template:
src: client.conf
dest: /root/.config/zuul/client.conf
mode: "0400"
- name: Make docker-compose directory
file:
state: directory

View File

@ -0,0 +1,3 @@
[opendev]
url=https://zuul.opendev.org/
auth_token={{ zuul_client_auth_token }}

View File

@ -1,3 +1,4 @@
zuul_client_auth_token: testauthtoken
zuul_scheduler_start: true
gearman_server_ssl_key: |