0.1.7 version

- koji_cli - add Kerberos keytab and principal configuration
    support.
  - koji_server - add sidetags configuration support.
  - koji_builder - disable use_bootstrap_image for mock.
master 0.1.7
Eugene Zamriy 9 months ago
parent 2af76fe3f4
commit a98ad908f2
Signed by: ezamriy
GPG Key ID: 7EBF95C7DCFA496C

@ -5,6 +5,20 @@ msvsphere.ci Release Notes
.. contents:: Topics .. contents:: Topics
v0.1.7
======
Minor Changes
-------------
- koji_cli - add Kerberos keytab path and principal configuration support trough ``koji_cli_keytab`` and ``koji_cli_principal`` variables.
- koji_server - add Koji sidetags configuration support through ``koji_hub_sidetags_max`` and ``koji_hub_sidetags_parents`` variables.
Bugfixes
--------
- koji_builder - enabled by default mock use_bootstrap_image option broke Koji builds. Fix disables this option globally in the /etc/mock/site-defaults.cfg file.
v0.1.6 v0.1.6
====== ======

@ -60,4 +60,4 @@ plugins:
strategy: {} strategy: {}
test: {} test: {}
vars: {} vars: {}
version: 0.1.6 version: 0.1.7

@ -75,3 +75,19 @@ releases:
name: koji_builder name: koji_builder
namespace: null namespace: null
release_date: '2023-12-22' release_date: '2023-12-22'
0.1.7:
changes:
bugfixes:
- koji_builder - enabled by default mock use_bootstrap_image option broke Koji
builds. Fix disables this option globally in the /etc/mock/site-defaults.cfg
file.
minor_changes:
- koji_cli - add Kerberos keytab path and principal configuration support trough
``koji_cli_keytab`` and ``koji_cli_principal`` variables.
- koji_server - add Koji sidetags configuration support through ``koji_hub_sidetags_max``
and ``koji_hub_sidetags_parents`` variables.
fragments:
- 3-disable-mock-bootstrap-image.yml
- 4-koji_cli_kerberos-support.yml
- 5-koji_server-sidetags-support.yml
release_date: '2023-12-28'

@ -0,0 +1,3 @@
---
bugfixes:
- koji_builder - enabled by default mock use_bootstrap_image option broke Koji builds. Fix disables this option globally in the /etc/mock/site-defaults.cfg file.

@ -0,0 +1,3 @@
---
minor_changes:
- koji_cli - add Kerberos keytab path and principal configuration support trough ``koji_cli_keytab`` and ``koji_cli_principal`` variables.

@ -0,0 +1,3 @@
---
minor_changes:
- koji_server - add Koji sidetags configuration support through ``koji_hub_sidetags_max`` and ``koji_hub_sidetags_parents`` variables.

@ -1,6 +1,6 @@
namespace: msvsphere namespace: msvsphere
name: ci name: ci
version: 0.1.6 version: 0.1.7
readme: README.md readme: README.md
authors: authors:
- Eugene Zamriy <ezamriy@msvsphere-os.ru> - Eugene Zamriy <ezamriy@msvsphere-os.ru>

@ -90,6 +90,9 @@
notify: notify:
- restart kojid - restart kojid
- name: Configure mock
import_tasks: mock.yml
- name: Enable and start kojid service - name: Enable and start kojid service
ansible.builtin.service: ansible.builtin.service:
name: kojid name: kojid

@ -0,0 +1,6 @@
---
- name: Disable use of bootstrap image in mock
ansible.builtin.lineinfile:
path: /etc/mock/site-defaults.cfg
line: 'config_opts["use_bootstrap_image"] = False'
regexp: ^\s*config_opts.*?use_bootstrap_image

@ -8,6 +8,8 @@ An Ansible role that installs and configures Koji CLI tools.
| ----------------- | ------------- | ---- | ------------------------- | -------- | | ----------------- | ------------- | ---- | ------------------------- | -------- |
| koji_domain_name | | str | Koji server domain name. | yes | | koji_domain_name | | str | Koji server domain name. | yes |
| koji_cli_user | | str | Koji CLI tools user name. | no | | koji_cli_user | | str | Koji CLI tools user name. | no |
| koji_cli_keytab | | str | Kerberos keytab file for automatic authentication. | no |
| koji_cli_principal | | str | Kerberos principal for automatic authentication. | no |
| koji_profile | "koji" | str | Koji profile name. | no | | koji_profile | "koji" | str | Koji profile name. | no |
| koji_ca_cert_path | | str | Koji CA certificate path. | no | | koji_ca_cert_path | | str | Koji CA certificate path. | no |
| koji_topdir | "/mnt/koji" | str | Koji top directory path. | no | | koji_topdir | "/mnt/koji" | str | Koji top directory path. | no |

@ -4,3 +4,5 @@ koji_cli_user:
koji_profile: 'koji' koji_profile: 'koji'
koji_ca_cert_path: koji_ca_cert_path:
koji_topdir: '/mnt/koji' koji_topdir: '/mnt/koji'
koji_cli_keytab:
koji_cli_principal:

@ -33,3 +33,15 @@ argument_specs:
default: '/mnt/koji' default: '/mnt/koji'
type: 'str' type: 'str'
required: false required: false
koji_cli_keytab:
description: Kerberos keytab file for automatic authentication.
type: str
required: false
version_added: '0.1.7'
koji_cli_principal:
description: Kerberos principal for automatic authentication.
type: str
required: false
version_added: '0.1.7'

@ -65,4 +65,5 @@
- { key: 'topurl', value: "https://{{ koji_domain_name }}/kojifiles" } - { key: 'topurl', value: "https://{{ koji_domain_name }}/kojifiles" }
- { key: 'topdir', value: "{{ koji_topdir }}" } - { key: 'topdir', value: "{{ koji_topdir }}" }
- { key: 'serverca', value: "{{ koji_ca_cert_path}}" } - { key: 'serverca', value: "{{ koji_ca_cert_path}}" }
- { key: 'keytab', value: "{{ koji_cli_keytab }}" }
- { key: 'principal', value: "{{ koji_cli_principal }}" }

@ -16,6 +16,8 @@ An Ansible role that configures a Koji server.
| koji_admin_user | "kojiroot" | str | Koji administrator user name. | no | | koji_admin_user | "kojiroot" | str | Koji administrator user name. | no |
| koji_admin_principal | "{{ koji_admin_user }}@{{ koji_kerberos_realm }}" | str | Koji administrator Kerberos principal name. | no | | koji_admin_principal | "{{ koji_admin_user }}@{{ koji_kerberos_realm }}" | str | Koji administrator Kerberos principal name. | no |
| koji_admin_password | | str | Koji administrator password. | yes | | koji_admin_password | | str | Koji administrator password. | yes |
| koji_hub_sidetags_max | 10 | int | Maximum number of sidetags for a parent tag. | no |
| koji_hub_sidetags_parents | [] | list | List of sidetags parent tags. | no |
| koji_hub_principal | "HTTP/{{ koji_domain_name }}@{{ koji_kerberos_realm }}" | str | Koji Hub Kerberos principal name. | no | | koji_hub_principal | "HTTP/{{ koji_domain_name }}@{{ koji_kerberos_realm }}" | str | Koji Hub Kerberos principal name. | no |
| koji_hub_keytab | "/etc/koji-hub/http.{{ koji_domain_name }}.keytab" | str | Koji Hub Kerberos keytab file path. | no | | koji_hub_keytab | "/etc/koji-hub/http.{{ koji_domain_name }}.keytab" | str | Koji Hub Kerberos keytab file path. | no |
| koji_web_principal | "koji/{{ koji_domain_name }}@{{ koji_kerberos_realm }}" | str | Koji Web Kerberos principal name. | no | | koji_web_principal | "koji/{{ koji_domain_name }}@{{ koji_kerberos_realm }}" | str | Koji Web Kerberos principal name. | no |

@ -16,3 +16,5 @@ koji_kojira_keytab: "/etc/kojira/kojira.{{ koji_domain_name }}.keytab"
koji_web_principal: "koji/{{ koji_domain_name }}@{{ koji_kerberos_realm }}" koji_web_principal: "koji/{{ koji_domain_name }}@{{ koji_kerberos_realm }}"
koji_web_keytab: "/etc/kojiweb/koji.{{ koji_domain_name }}.keytab" koji_web_keytab: "/etc/kojiweb/koji.{{ koji_domain_name }}.keytab"
koji_web_secret: koji_web_secret:
koji_hub_sidetags_max: 10
koji_hub_sidetags_parents: []

@ -101,3 +101,17 @@ argument_specs:
default: '/etc/kojira/kojira.{{ koji_domain_name }}.keytab' default: '/etc/kojira/kojira.{{ koji_domain_name }}.keytab'
type: str type: str
required: false required: false
koji_hub_sidetags_max:
description: Maximum number of sidetags for a parent tag.
default: 10
type: int
required: false
version_added: '0.1.7'
koji_hub_sidetags_parents:
description: List of sidetags parent tags.
default: []
type: list
elements: str
version_added: '0.1.7'

@ -27,6 +27,9 @@ Plugins = sidetag_hub
[policy] [policy]
sidetag = sidetag =
{% for sidetag_parent in koji_hub_sidetags_parents %}
tag {{ sidetag_parent }} && compare number_of_tags <= {{ koji_hub_sidetags_max }} :: allow
{% endfor %}
all :: deny all :: deny
package_list = package_list =

Loading…
Cancel
Save