Add zuul-regsitry group

Depends-On: https://review.opendev.org/763098
Depends-On: https://review.opendev.org/763069
Change-Id: I03430ac4793bbecbc152178506c228a6fe713e6d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2020-11-17 18:15:42 -05:00
parent e8ffcf8d27
commit 1952b31a71
3 changed files with 95 additions and 0 deletions

View File

@ -0,0 +1,74 @@
# 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.
---
# windmill.zuul
zuul_registry_user_shell: /bin/bash
zuul_registry_file_registry_yaml_src: "{{ windmill_config_git_dest }}/zuul-registry/registry.yaml.j2"
zuul_registry_pip_virtualenv_python: python3
zuul_registry_pip_virtualenv: /opt/venv/zuul-registry-untagged
zuul_registry_pip_virtualenv_symlink: /opt/venv/zuul-registry
zuul_registry_file_ssl_cert_content: |
-----BEGIN CERTIFICATE-----
MIIDQTCCAikCCQDWIKrPJpjpMjANBgkqhkiG9w0BAQsFADBiMQswCQYDVQQGEwJV
UzEOMAwGA1UECAwFVGV4YXMxDzANBgNVBAcMBkF1c3RpbjEdMBsGA1UECgwUT3Bl
blN0YWNrIEZvdW5kYXRpb24xEzARBgNVBAMMCmdlYXJtYW4tY2EwHhcNMTgwMzI4
MDIzNTAzWhcNMjgwMzI1MDIzNTAzWjBjMQswCQYDVQQGEwJVUzEOMAwGA1UECAwF
VGV4YXMxDzANBgNVBAcMBkF1c3RpbjEdMBsGA1UECgwUT3BlblN0YWNrIEZvdW5k
YXRpb24xFDASBgNVBAMMC3p1dWwtY2xpZW50MIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgKCAQEA0lHk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K0TBoSc8DjPM/yzz5BCw/zQjyBy0GQtviKdGSUDDRE5xMC3kHmzcMVF9jf
kq4/DSZjJ5UOqGdjLQ4SINFWJF5SmWi5Sg+NXKkCgYEAzD22Q8ttCKORyg7/Zi+9
84bn2tirCKSWPYkx2Zs/XB8qgZCZJcA0XxvnHUepP0F7T9nrvgRLe2wjOKDi0OJh
QqE7FEp7UZbDEVLb1xBaijmjkuq300f4olW+UNKzC23kSiX/VL3ngpxt0saNTWN+
GGE1XO4oxVDrkeDSIUmxN60=
-----END PRIVATE KEY-----

View File

@ -31,6 +31,9 @@ zf01 ansible_host=127.0.8.1
[zuul-merger]
zm01 ansible_host=127.0.4.1
[zuul-registry]
zr01 ansible_host=127.0.10.1
[zuul-scheduler]
zs01 ansible_host=127.0.5.1

View File

@ -0,0 +1,18 @@
---
registry:
address: {{ hostvars['zr01'].ansible_host }}
port: 9000
tls-cert: /etc/zuul-registry/ssl/cert.pem
tls-key: /etc/zuul-registry/ssl/cert.key
secret: test_token_secret
public-url: https://{{ hostvars['zr01'].ansible_host }}:9000
users:
- name: testuser
pass: testpass
access: write
- name: anonymous
pass: ''
access: read
storage:
driver: filesystem
root: /var/lib/zuul-registry/storage