Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage Copr projects #9290

Merged
merged 1 commit into from
Aug 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions package_manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,59 @@ all:
dist: '.el8'
macros:
foremandist: "{{ foremandist }}"
copr_project_user: "@theforeman"
children:
packages: {}
repoclosures: {}
copr_projects: {}

copr_projects:
vars:
core_modules:
- 'ruby:2.7'
- 'python39:3.9'
- 'nodejs:12'
- 'postgresql:12'
rhel_9_chroot: rhel-9-x86_64
rhel_8_chroot: rhel-8-x86_64
rhel_7_chroot: rhel-7-x86_64
hosts:
foreman-copr:
copr_project_name: "foreman-{{ foreman_version }}-staging"
copr_project_chroots:
- name: "{{ rhel_8_chroot }}"
modules: "{{ core_modules }}"
external_repos:
- https://yum.puppet.com/puppet7/el/8/x86_64/
comps_file: "{{ inventory_dir }}/comps/comps-foreman-el8.xml"
plugins-copr:
copr_project_name: "foreman-plugins-{{ foreman_version }}-staging"
copr_project_chroots:
- name: "{{ rhel_8_chroot }}"
modules: "{{ core_modules }}"
external_repos:
- https://download.copr.fedorainfracloud.org/results/@theforeman/foreman-nightly-staging/rhel-8-x86_64/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copr can refer to other coprs using copr://user/project syntax -- no idea if that's better or worse, but wanted to point it out :)

comps_file: "{{ inventory_dir }}/comps/comps-foreman-plugins-el8.xml"
katello-copr:
copr_project_name: "foreman-katello-{{ foreman_version }}-staging"
copr_project_chroots:
- name: "{{ rhel_8_chroot }}"
modules: "{{ core_modules }}"
external_repos:
- https://download.copr.fedorainfracloud.org/results/@theforeman/foreman-nightly-staging/rhel-8-x86_64/
- https://download.copr.fedorainfracloud.org/results/@theforeman/foreman-plugins-nightly-staging/rhel-8-x86_64/
comps_file: "{{ inventory_dir }}/comps/comps-katello-el8.xml"
client-copr:
copr_project_name: "foreman-client-{{ foreman_version }}-staging"
copr_project_chroots:
- name: "{{ rhel_9_chroot }}"
comps_file: "{{ inventory_dir }}/comps/comps-foreman-client-el9.xml"
- name: "{{ rhel_8_chroot }}"
comps_file: "{{ inventory_dir }}/comps/comps-foreman-client-el8.xml"
- name: "{{ rhel_7_chroot }}"
external_repos:
- https://dl.fedoraproject.org/pub/epel/7/x86_64/
comps_file: "{{ inventory_dir }}/comps/comps-foreman-client-rhel7.xml"

packages:
vars:
Expand Down Expand Up @@ -60,6 +110,13 @@ foreman_packages:
- el8-powertools
- el8-puppet-7
- "el8-katello-candlepin-{{ katello_version }}"
rhel-8-x86_64:
- el8-baseos
- el8-appstream
- el8-extras
- el8-powertools
- el8-puppet-7
- "el8-katello-candlepin-{{ katello_version }}"
children:
foreman_core_packages: {}
foreman_proxy_packages: {}
Expand All @@ -68,6 +125,8 @@ foreman_packages:

plugin_packages:
vars:
copr_projects:
- "{{ hostvars['plugins-copr'] }}"
package_base_dir: 'packages/plugins/'
koji_tags:
- "{{ all_tags['foreman-plugins-el8'] }}"
Expand All @@ -88,6 +147,9 @@ plugin_packages:
foreman_proxy_plugin_packages: {}

rails_core_packages:
vars:
copr_projects:
- "{{ hostvars['foreman-copr'] }}"
hosts:
rubygem-actioncable: {}
rubygem-actionmailbox: {}
Expand All @@ -104,6 +166,9 @@ rails_core_packages:
rubygem-railties: {}

foreman_core_packages:
vars:
copr_projects:
- "{{ hostvars['foreman-copr'] }}"
children:
rails_core_packages: {}
hosts:
Expand Down Expand Up @@ -320,6 +385,9 @@ foreman_core_packages:
rubygem-zeitwerk: {}

foreman_nodejs_packages:
vars:
copr_projects:
- "{{ hostvars['foreman-copr'] }}"
hosts:
gyp: {}
nodejs-argv-parse: {}
Expand Down Expand Up @@ -396,6 +464,9 @@ foreman_nodejs_packages:
strategy: bundle

foreman_installer_packages:
vars:
copr_projects:
- "{{ hostvars['foreman-copr'] }}"
hosts:
foreman-installer:
source_location: https://ci.theforeman.org/job/foreman-installer-develop-source-release
Expand All @@ -414,6 +485,9 @@ foreman_installer_packages:
rubygem-kafo_wizards: {}

foreman_proxy_packages:
vars:
copr_projects:
- "{{ hostvars['foreman-copr'] }}"
hosts:
foreman-proxy:
source_location: https://ci.theforeman.org/job/smart-proxy-develop-source-release
Expand All @@ -440,6 +514,8 @@ yggdrasil_client_packages:

foreman_client_packages:
vars:
copr_projects:
- "{{ hostvars['client-copr'] }}"
package_base_dir: 'packages/client/'
koji_tags:
- "{{ all_tags['foreman-client-el9'] }}"
Expand Down Expand Up @@ -491,6 +567,8 @@ qpid_proton_packages:

katello_packages:
vars:
copr_projects:
- "{{ hostvars['katello-copr'] }}"
package_base_dir: 'packages/katello/'
koji_tags:
- "{{ all_tags['katello-el8'] }}"
Expand Down Expand Up @@ -838,6 +916,9 @@ repoclosures:

foreman_release_packages:
vars:
copr_projects:
- "{{ hostvars['foreman-copr'] }}"
- "{{ hostvars['client-copr'] }}"
koji_tags:
- "{{ all_tags['foreman-el8'] }}"
- "{{ all_tags['foreman-client-el9'] }}"
Expand Down