add tag refreshes
This commit is contained in:
parent
1e131ff96c
commit
3d4534f9c5
39
init-refresh-koji-tags.yml
Normal file
39
init-refresh-koji-tags.yml
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
---
|
||||||
|
- name: Update Koji Tags
|
||||||
|
hosts: all
|
||||||
|
become: true
|
||||||
|
pre_tasks:
|
||||||
|
- name: Check if ansible cannot be run here
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: /etc/no-ansible
|
||||||
|
register: no_ansible
|
||||||
|
|
||||||
|
- name: Verify if we can run ansible
|
||||||
|
ansible.builtin.assert:
|
||||||
|
that:
|
||||||
|
- "not no_ansible.stat.exists"
|
||||||
|
success_msg: "We are able to run on this node"
|
||||||
|
fail_msg: "/etc/no-ansible exists - skipping run on this node"
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Update all non-build koji tags
|
||||||
|
import_tasks: "tasks/koji/setup_non_build_tags.yml"
|
||||||
|
|
||||||
|
- name: Update all build koji tags
|
||||||
|
import_tasks: "tasks/koji/setup_build_tags.yml"
|
||||||
|
|
||||||
|
- name: Update all macro koji tags
|
||||||
|
import_tasks: "tasks/koji/setup_macro_tags.yml"
|
||||||
|
|
||||||
|
- name: Update all module koji tags
|
||||||
|
import_tasks: "tasks/koji/setup_module_tags.yml"
|
||||||
|
|
||||||
|
post_tasks:
|
||||||
|
- name: Touching run file that ansible has ran here
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /var/log/ansible.run
|
||||||
|
state: touch
|
||||||
|
mode: '0644'
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
...
|
0
tasks/koji/README.md
Normal file
0
tasks/koji/README.md
Normal file
12
tasks/koji/setup_build_tags.yml
Normal file
12
tasks/koji/setup_build_tags.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
- name: "Setup koji build tags"
|
||||||
|
ktdreyer.koji_ansible.koji_tag:
|
||||||
|
name: "{{ item }}"
|
||||||
|
arches: "{{ koji_default_arches }}"
|
||||||
|
state: present
|
||||||
|
groups: "{{ koji_groups }}"
|
||||||
|
extra:
|
||||||
|
mock.new_chroot: 0
|
||||||
|
mock.package_manager: "dnf"
|
||||||
|
with_items: "{{ all_koji_b_tags }}"
|
||||||
|
...
|
10
tasks/koji/setup_macro_tags.yml
Normal file
10
tasks/koji/setup_macro_tags.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
- name: "Create all macro tags"
|
||||||
|
ktdreyer.koji_ansible.koji_tag:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: present
|
||||||
|
packages:
|
||||||
|
rockykoji:
|
||||||
|
- buildsys-macros-el8
|
||||||
|
with_items: "{{ all_koji_r_tags }}"
|
||||||
|
...
|
8
tasks/koji/setup_module_tags.yml
Normal file
8
tasks/koji/setup_module_tags.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
- name: "Setup koji module tags"
|
||||||
|
ktdreyer.koji_ansible.koji_tag:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: present
|
||||||
|
packages: "{{ koji_modules }}"
|
||||||
|
with_items: "{{ all_koji_m_tags }}"
|
||||||
|
...
|
8
tasks/koji/setup_non_build_tags.yml
Normal file
8
tasks/koji/setup_non_build_tags.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
- name: "Create all base tags and their packages"
|
||||||
|
ktdreyer.koji_ansible.koji_tag:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: present
|
||||||
|
packages: "{{ koji_pkgs }}"
|
||||||
|
with_items: "{{ all_koji_nb_tags }}"
|
||||||
|
...
|
0
tasks/peridot/README.md
Normal file
0
tasks/peridot/README.md
Normal file
0
tasks/sync/README.md
Normal file
0
tasks/sync/README.md
Normal file
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
# all standard tags
|
# all standard tags
|
||||||
koji_default_owner: "rockykoji"
|
koji_default_owner: "rockykoji"
|
||||||
|
koji_default_arches: "x86_64 i686 aarch64"
|
||||||
all_koji_r_tags:
|
all_koji_r_tags:
|
||||||
- el8
|
- el8
|
||||||
- el8_0
|
- el8_0
|
||||||
@ -42,7 +43,8 @@ all_koji_nbe_tags:
|
|||||||
- dist-rocky8-infra-compose
|
- dist-rocky8-infra-compose
|
||||||
- dist-rocky8-plus
|
- dist-rocky8-plus
|
||||||
- dist-rocky8-plus-compose
|
- dist-rocky8-plus-compose
|
||||||
koji_el8_srpm_group:
|
koji_groups:
|
||||||
|
srpm-build:
|
||||||
- bash
|
- bash
|
||||||
- buildsys-macros-el8
|
- buildsys-macros-el8
|
||||||
- git
|
- git
|
||||||
@ -53,7 +55,7 @@ koji_el8_srpm_group:
|
|||||||
- shadow-utils
|
- shadow-utils
|
||||||
- srpmproc
|
- srpmproc
|
||||||
- system-release
|
- system-release
|
||||||
koji_el8_build_group:
|
build:
|
||||||
- bash
|
- bash
|
||||||
- buildsys-macros-el8
|
- buildsys-macros-el8
|
||||||
- bzip2
|
- bzip2
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
koji_modules:
|
koji_modules:
|
||||||
|
rockykoji:
|
||||||
- nginx
|
- nginx
|
||||||
- nginx-devel
|
- nginx-devel
|
||||||
- nodejs
|
- nodejs
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
koji_pkgs:
|
koji_pkgs:
|
||||||
|
rockykoji:
|
||||||
- 389-ds
|
- 389-ds
|
||||||
- 389-ds-base
|
- 389-ds-base
|
||||||
- CUnit
|
- CUnit
|
||||||
|
Loading…
Reference in New Issue
Block a user