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

Add stream-10-devel container #89

Merged
merged 2 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
image: [
{ base: 'quay.io/centos/centos:stream8', tag: 'centos-8', extra: '', unavailable: 'samba' },
{ base: 'quay.io/centos/centos:stream9', tag: 'centos-9', extra: 'centos-latest', unavailable: 'samba' },
{ base: 'quay.io/centos/centos:stream10-development', tag: 'centos-10', extra: '', unavailable: 'samba' },
{ base: 'docker.io/debian:12', tag: 'debian-12', extra: 'debian-latest', unavailable: 'ipa ldap samba' },
{ base: 'docker.io/ubuntu:latest', tag: 'ubuntu-latest', extra: '', unavailable: 'ipa ldap samba' },
{ base: 'docker.io/ubuntu:rolling', tag: 'ubuntu-rolling', extra: '', unavailable: 'ipa ldap samba' },
Expand Down
8 changes: 8 additions & 0 deletions src/ansible/roles/facts/tasks/CentOS10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- name: 'Facts are the same as in Fedora'
include_tasks: 'Fedora.yml'

- name: Set distribution specific facts
set_fact:
buildroot: Yes
passkey_support: Yes
virt_smartcard: No
21 changes: 21 additions & 0 deletions src/ansible/roles/packages/tasks/CentOS10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
- name: Install buildroot repository
block:
- name: Install dnf plugins
dnf:
state: present
name:
- dnf-plugins-core

- name: Install buildroot
template:
src: repo
dest: '/etc/yum.repos.d/{{ item.name }}.repo'
owner: root
group: root
mode: 0644
with_items:
- {name: 'buildroot', url: 'https://kojihub.stream.centos.org/kojifiles/repos/c10s-build/latest/$basearch'}
when: buildroot

- name: 'Packages are the same as in Fedora'
include_tasks: 'Fedora.yml'
12 changes: 8 additions & 4 deletions src/ansible/roles/packages/tasks/Fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@

- name: Install @sssd/ci-deps repositories
shell: |
dnf copr enable -y @sssd/ci-deps
if grep -q "CentOS Stream release 10" /etc/redhat-release
then
# 'dnf copr' defaults to 'epel' on centos-stream but there is no epel-10
dnf copr enable -y @sssd/ci-deps centos-stream-10-x86_64
else
dnf copr enable -y @sssd/ci-deps
fi

# Legacy repo containing the virtualsmartcard, virt_cacard, vpcd that was replaced by ci-deps
# Keeping it here in case we need to return to it for some reason.
Expand Down Expand Up @@ -160,7 +166,7 @@
- selinux-policy-devel
- make
when: virt_smartcard

- name: Install virtual smartcard packages from copr
dnf:
state: present
Expand Down Expand Up @@ -262,10 +268,8 @@
- http-parser-devel
- krb5-server
- krb5-workstation
- lcov
- libcmocka-devel
- libfaketime
- mock
- nss_wrapper
- openldap-clients
- openldap-servers
Expand Down
Loading