mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-06-27 23:57:02 +08:00
@@ -1,4 +1,4 @@
|
||||
# This playbook looks up on the dist-git for valid EPEL repositories, and
|
||||
# This playbook looks up on the dist-git for valid EPEL repositories, and
|
||||
# creates EPEL branches from a target branch.
|
||||
#
|
||||
# Running the following line will do a dry-run of the process on the staging server.
|
||||
@@ -6,7 +6,7 @@
|
||||
# -e release=10.1 \
|
||||
# -e branch_from=epel10 \
|
||||
# playbooks/manual/epel-minor-release/branch-disgit-packages.yml
|
||||
#
|
||||
#
|
||||
# You can also use it locally to test how it works
|
||||
# $ ansible-playbook \
|
||||
# -e release=10.1 \
|
||||
@@ -14,7 +14,7 @@
|
||||
# -e target=localhost \
|
||||
# -e checkout_path=/tmp/rpms \
|
||||
# playbooks/manual/epel-minor-release/branch-disgit-packages.yml
|
||||
#
|
||||
#
|
||||
# Expected extra-vars:
|
||||
# release
|
||||
# The new EPEL version, using the <major>.<minor> format
|
||||
@@ -37,8 +37,8 @@
|
||||
|
||||
# Define variables
|
||||
checkout_path: "/srv/git/rpms"
|
||||
|
||||
BLOCKED_PACKAGES:
|
||||
|
||||
BLOCKED_PACKAGES:
|
||||
- asahi-installer
|
||||
- asahi-scripts
|
||||
- m1n1
|
||||
@@ -68,7 +68,7 @@
|
||||
map('basename') |
|
||||
map('regex_replace', '(\\.git)$', '') |
|
||||
list }}"
|
||||
|
||||
|
||||
- name: Remove blocked packages
|
||||
set_fact:
|
||||
package_list_blocked: '{{ package_list | difference(BLOCKED_PACKAGES) | list }}'
|
||||
@@ -82,7 +82,7 @@
|
||||
loop_control:
|
||||
label: ''
|
||||
register: existing_branch_query
|
||||
|
||||
|
||||
- name: Get filtered packages
|
||||
set_fact:
|
||||
package_list_filtered: "{{
|
||||
@@ -108,7 +108,7 @@
|
||||
|
||||
- name: Show package information
|
||||
debug:
|
||||
msg:
|
||||
msg:
|
||||
- "This process will create epel{{ release }} branches on projects that have the {{ branch_from }} branch."
|
||||
- "{{ (package_list_final | length) }} out of the {{ (package_list | length) }} available packages will be branched."
|
||||
- "- {{ (package_list | length) - (package_list_blocked | length) }} was on the EPEL block list."
|
||||
@@ -127,4 +127,4 @@
|
||||
fi
|
||||
register: tmp
|
||||
changed_when: "tmp.stdout != 'no_change'"
|
||||
loop: "{{ package_list_final }}"
|
||||
loop: "{{ package_list_final }}"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# This playbook creates EPEL tags for the new minor version,
|
||||
# This playbook creates EPEL tags for the new minor version,
|
||||
# cloning information from the previous one.
|
||||
#
|
||||
# Running the following line will do a dry-run of the process on the stg server.
|
||||
# $ ansible-playbook --check -e "release=10.1 koji_profile=stg" \
|
||||
# playbooks/manual/epel-minor-release/koji-release-tags.yml -vvv
|
||||
#
|
||||
#
|
||||
# Expected extra-vars:
|
||||
# release
|
||||
# The new EPEL version, using the <major>.<minor> format
|
||||
@@ -157,7 +157,7 @@
|
||||
|
||||
- name: Clone epel{{ old_release }} tag into epel{{ release }}
|
||||
ansible.builtin.command: "koji --profile {{ koji_profile }} regen-repo epel{{ release }}-build"
|
||||
|
||||
|
||||
- name: Create targets
|
||||
koji_target:
|
||||
koji: "{{ koji_profile }}"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# This playbook creates folders and repos to prepare for
|
||||
# This playbook creates folders and repos to prepare for
|
||||
# a new minor epel target.
|
||||
#
|
||||
# Running the following line will do a dry-run of the process on the stg server.
|
||||
# $ ansible-playbook --check -e "release=10.1 koji_profile=stg" \
|
||||
# playbooks/manual/epel-minor-release/koji-release-tags.yml -vvv
|
||||
#
|
||||
#
|
||||
# Expected extra-vars:
|
||||
# release
|
||||
# The new EPEL version, using the <major>.<minor> format
|
||||
@@ -57,11 +57,11 @@
|
||||
mode: '0755'
|
||||
owner: ftpsync
|
||||
group: ftpsync
|
||||
loop: "{{
|
||||
['aarch64', 'ppc64le', 's390x', 'x86_64'] |
|
||||
product(['Packages','debug','drpms']) |
|
||||
loop: "{{
|
||||
['aarch64', 'ppc64le', 's390x', 'x86_64'] |
|
||||
product(['Packages','debug','drpms']) |
|
||||
list }}"
|
||||
|
||||
|
||||
- name: Create repositories
|
||||
become: yes
|
||||
become_user: ftpsync
|
||||
@@ -104,7 +104,7 @@
|
||||
command: createrepo_c "{{ item }}"
|
||||
loop: "{{ lookup('pipe', 'find /pub/epel/{{ release }}/Everything/*/debug/ -type d -mindepth 1 -maxdepth 1') | split }}"
|
||||
|
||||
#Testing repos
|
||||
# Testing repos
|
||||
|
||||
- name: Create testing repos for packages
|
||||
block:
|
||||
@@ -117,9 +117,9 @@
|
||||
mode: '0755'
|
||||
owner: ftpsync
|
||||
group: ftpsync
|
||||
loop: "{{
|
||||
['aarch64', 'ppc64le', 's390x', 'x86_64'] |
|
||||
product(['Packages','debug','drpms']) |
|
||||
loop: "{{
|
||||
['aarch64', 'ppc64le', 's390x', 'x86_64'] |
|
||||
product(['Packages','debug','drpms']) |
|
||||
list }}"
|
||||
|
||||
- name: Create repositories
|
||||
@@ -163,4 +163,3 @@
|
||||
become_user: ftpsync
|
||||
command: createrepo_c "{{ item }}"
|
||||
loop: "{{ lookup('pipe', 'find /pub/epel/testing/{{ release }}/Everything/*/debug/ -type d -mindepth 1 -maxdepth 1') | split }}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user