0.1.12 version - handle both old and new Koji DB schema paths

master 0.1.12
Eugene Zamriy 7 months ago
parent c714332c15
commit 757bbe335e
Signed by: ezamriy
GPG Key ID: 7EBF95C7DCFA496C

@ -5,6 +5,14 @@ msvsphere.ci Release Notes
.. contents:: Topics .. contents:: Topics
v0.1.12
=======
Minor Changes
-------------
- koji_server - add support for both old and new Koji DB schema paths.
v0.1.11 v0.1.11
======= =======

@ -68,4 +68,4 @@ plugins:
strategy: {} strategy: {}
test: {} test: {}
vars: {} vars: {}
version: 0.1.11 version: 0.1.12

@ -37,6 +37,13 @@ releases:
fragments: fragments:
- 8-install-extra-lorax-deps.yml - 8-install-extra-lorax-deps.yml
release_date: '2024-03-06' release_date: '2024-03-06'
0.1.12:
changes:
minor_changes:
- koji_server - add support for both old and new Koji DB schema paths.
fragments:
- 9-handle-koji-schema-path-change.yml
release_date: '2024-04-19'
0.1.2: 0.1.2:
objects: objects:
role: role:

@ -0,0 +1,3 @@
---
minor_changes:
- koji_server - add support for both old and new Koji DB schema paths.

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

@ -42,14 +42,28 @@
register: koji_database_initialized register: koji_database_initialized
changed_when: "koji_database_initialized.failed" changed_when: "koji_database_initialized.failed"
- name: Initialize Koji database - name: Check if /usr/share/doc/koji/docs/schema.sql file exists
ansible.builtin.stat:
path: /usr/share/doc/koji/docs/schema.sql
register: koji_docs_schema_result
- name: Initialize Koji database from /usr/share/doc/koji/docs/schema.sql
community.postgresql.postgresql_query: community.postgresql.postgresql_query:
db: "{{ koji_db_name }}" db: "{{ koji_db_name }}"
login_user: "{{ koji_db_user }}" login_user: "{{ koji_db_user }}"
login_password: "{{ koji_db_password }}" login_password: "{{ koji_db_password }}"
login_host: "{{ koji_db_server_ip }}" login_host: "{{ koji_db_server_ip }}"
path_to_script: /usr/share/doc/koji/docs/schema.sql path_to_script: /usr/share/doc/koji/docs/schema.sql
when: koji_database_initialized.failed when: koji_database_initialized.failed and koji_docs_schema_result.stat.exists
- name: Initialize Koji database from /usr/share/koji/schema.sql
community.postgresql.postgresql_query:
db: "{{ koji_db_name }}"
login_user: "{{ koji_db_user }}"
login_password: "{{ koji_db_password }}"
login_host: "{{ koji_db_server_ip }}"
path_to_script: /usr/share/koji/schema.sql
when: koji_database_initialized.failed and not koji_docs_schema_result.stat.exists
- name: Check if Koji admin DB user exists - name: Check if Koji admin DB user exists
community.postgresql.postgresql_query: community.postgresql.postgresql_query:

Loading…
Cancel
Save