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:
parent
d991865e58
commit
dbc69021e2
3
playbooks/roles/zuul-scheduler/files/zuul-client
Normal file
3
playbooks/roles/zuul-scheduler/files/zuul-client
Normal 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 $*
|
@ -88,6 +88,23 @@
|
|||||||
vars:
|
vars:
|
||||||
logrotate_file_name: /var/log/zuul/gearman-server.log
|
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
|
- name: Make docker-compose directory
|
||||||
file:
|
file:
|
||||||
state: directory
|
state: directory
|
||||||
|
3
playbooks/roles/zuul-scheduler/templates/client.conf
Normal file
3
playbooks/roles/zuul-scheduler/templates/client.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[opendev]
|
||||||
|
url=https://zuul.opendev.org/
|
||||||
|
auth_token={{ zuul_client_auth_token }}
|
@ -1,3 +1,4 @@
|
|||||||
|
zuul_client_auth_token: testauthtoken
|
||||||
zuul_scheduler_start: true
|
zuul_scheduler_start: true
|
||||||
|
|
||||||
gearman_server_ssl_key: |
|
gearman_server_ssl_key: |
|
||||||
|
Loading…
Reference in New Issue
Block a user