1
0
Fork 0
forked from infra/ansible
Commit graph

109 commits

Author SHA1 Message Date
d6cca9eb11 yumrepos: fix rhel10-infra-stg repo also
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-07-09 15:09:04 -07:00
a326adbb30 epel10-infra: add new signing key
The old key we were using for old releases had some sha1 in it
somewhere, so rhel10 rejects it (great!). So, lets use a newly generated
key that is acceptable to rhel10 and much nicer.

This adds the public key file, the repos that use that file, the rhel10
post kickstart that sets up the repo, robosignatory to sign epel10-infra
stuff with this new key and finally on rhel10 hosts put the new repo in
place.

Note that this only changes the rhel10 setup, all rhel8/9 machines are
still using the old key. We may want to move them over, or just not care
as we retire all of them.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-07-09 14:52:33 -07:00
31776c27e4 Fix syntax error
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-07-01 14:26:36 +02:00
d96ff34676 Enable infra tags repos on RHEL10
There are now infra tags repositories for RHEL10, let's enable them.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-07-01 14:19:37 +02:00
d358e813df Argh. Quotes.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-06-30 16:41:28 -07:00
75298197ce Remove cisco openh264 repo on all Fedora systems
We used to do this only on builders, but right now it's causing
problems on all hosts during the infra move:

2025-06-30T23:35:32+0000 INFO Serious error - Curl code (28): Timeout was reached for https://kojipkgs.fedoraproject.org/repos-dist/f42-infra/latest/x86_64/repodata/repomd.xml [Connection timed out after 30001 milliseconds]

and we don't actually need this repo for any infra systems, I
don't think. Let's just disable it for every Fedora host.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-06-30 16:37:54 -07:00
James Antill
0af9b7b58d repos: Remove extra ) in install tasks condition.
Signed-off-by: James Antill <james@and.org>
2025-06-20 11:37:55 -04:00
James Antill
319218f3fb repos: add CentOS-9s RabbitMQ SIG repos/gpgkey and install tasks.
Signed-off-by: James Antill <james@and.org>
2025-06-20 10:45:02 -04:00
8494306377 repos: we have not yet setup epel10 infra tags and need to
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-05-30 19:29:26 -07:00
47c68f478d ansiblelint fixes - fqcn[action-core] - template to ansible.builtin.template
Replaces references to template: with ansible.builtin.template

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:30:29 +10:00
25391e95b7 ansiblelint fixes - fqcn[action-core] - package to ansible.builtin.package
Replaces many references to  package: with ansible.builtin.package

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:28:00 +10:00
6a3816dfdc ansiblelint fixes-- fqcn[action-core] - copy to ansible.builtin.copy
Replaces many references to 'copy' with ansible.builtin.copy

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:43:31 +10:00
62952df107 ansiblelint fixes-- fqcn[action-core] - file to ansible.builtin.file
Replaces many references to  file: with ansible.builtin.file

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:41:52 +10:00
691adee6ee Fix name[casing] ansible-lint issues
fix 1900 failures of the following case issue:

`name[casing]: All names should start with an uppercase letter.`

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-14 20:20:07 +10:00
73db9ea127 Ensure python3-dnf is installed on Fedora 41+ hosts
dnf5 requires neither python3-rpm nor python3-dnf, so we cannot
assume they are installed (as they always were before). ansible's
package_facts needs python3-rpm (even in the latest upstream
version), so we at least need that. The ansible in rhel9 (which
is what's on batcave01 currently) does not support dnf5 at all,
so we need python3-dnf installed so it can use its dnf3/4
support. python3-dnf relies on python3-rpm, so we can just
check for and install python3-dnf. Once batcave01 is updated to
an ansible that supports dnf5 we won't need python3-dnf, but we
*will* still need python3-rpm.

Stuffing this in yumrepos.yml as it runs on everything, early,
and is packaging-related. We could make it a separate task but
then we'd need to make every playbook include it...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-11-22 11:21:41 -08:00
2effd14627 yumrepos: Fedora hosts primary vs. secondary simplification
The old way of setting Fedora repos was not idempotent for
vmhost-p09-copr01.rdu-cc.fedoraproject.org (was considered both primary
and secondary).  And it appears this would be the same for all Fedora
s390x/ppc64le boxes.
2024-02-14 22:15:37 +00:00
c5542bc327 yumrepos: modernize, fix ppc64le bvmhosts and remove modular repos
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-08-19 13:46:57 -07:00
dc82b8da30 batcave: adjust packages for rhel9
This is for a test batcave02 for now, but will be used when we move
batcave01 over to rhel9

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-05-10 16:34:17 -07:00
de2279d2cb yumrepos: don't add el9 infra-tags repo for now
Signed-off-by: Mark O Brien <markobri@redhat.com>
2021-12-21 16:51:41 +00:00
0230c3f85d yumrepos: skip epel9-infra for now
Signed-off-by: Mark O Brien <markobri@redhat.com>
2021-12-21 16:42:42 +00:00
daf7776a9d yumrepos: be RHEL7/CentOS7 compatible
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2021-03-30 14:36:04 +02:00
280eebdcee tasks/yumrepos: cope with archived Fedora releases
We have some hosts that run on archived/EOL Fedora releases, their
repository URLs need to reflect that.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-03-19 15:22:21 +00:00
e20c1c2776 another typo of typo 2021-03-15 21:09:52 +01:00
07e8497012 another typo 2021-03-15 21:08:23 +01:00
70186a284b another typo 2021-03-15 21:05:27 +01:00
53dcd35255 typo 2021-03-15 21:03:08 +01:00
60239c0791 typo 2021-03-15 20:59:59 +01:00
e72f0a23a7 typo 2021-03-15 20:56:30 +01:00
6523edb25b use original epel repository in AWS datacenter 2021-03-15 20:53:40 +01:00
a53ee8f7f7 openshift: repos: this is a template now
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-11 15:14:11 -07:00
f5256442a3 iad2: also cast all these ansible_distribution_major_version to int
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-03 09:47:44 -07:00
dafe7b0e8c yumrepos: try and fix aws centos repos for aws
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:25 +02:00
d2ce8afd46 do not modify fedora*.repo when deploying in AWS 2020-04-24 21:34:23 +02:00
264ddd3306 add tag, without a tag this load is skipped when using -t config 2020-04-24 21:34:19 +02:00
b46e36ec41 include all/vars only once
and there is no need to load it in every playbook in pre_tasks
2020-04-24 21:34:19 +02:00
3fbe452116 yumrepos: try and adjust for secondary/primary stuff.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:16 +02:00
70a711c577 yumrepos: also install infra-tags repo on maintainer-test.
We removed it a while back because our local mock was causing problems, thats not the case anymore.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:13 +02:00
86bfee4ab4 yumrepos: likewise clean up logic on base fedora repos and exclude rawhide test.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:13 +02:00
81b2f39d18 yumrepos: adjust logic for rawhide-test, shouldn't affect anything else.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:13 +02:00
Karsten Hopp
c9ed62ac32 update ansible_distribution_major_version conditionals
Signed-off-by: Karsten Hopp <karsten@redhat.com>
2020-04-24 21:34:10 +02:00
4b31ac5152 ansible: Change all our group names from foo-bar to foo_bar or foo-bar-baz to foo_bar_baz
In ansible 2.8 the - character isn't supposed to be valid in group names.
While we could override this, might has well just bite the bullet and change it.
So, just switch all group names to use _ instead of -

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-05-20 17:38:09 +00:00
7f6b3a59dc power9: add repos file to point to the right place and fix yumrepos to work with power9 hosts.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-03-22 04:36:31 +00:00
fa0355d808 Fix aarch64 server checks @kevin did yesterday
...two equals signs, Kevin. Two equals signs.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-01-18 09:21:53 -08:00
ce89504030 Revert "yum-repos: make the distro versions all cast to int, might be confusing this rhel8b deploy"
This reverts commit 7693c96b6b.
2019-01-17 21:49:23 +00:00
7693c96b6b yum-repos: make the distro versions all cast to int, might be confusing this rhel8b deploy
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-01-17 21:43:30 +00:00
af085bf1e4 rhel8beta: fix up some repos for aarch64
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-01-17 21:05:25 +00:00
63c2526d93 Fix up logic a bit. 2018-11-24 19:57:14 +00:00
529efd02d0 Don't install the infra tags repo on maintainer tests instances, to allow for them to use normal mock. 2018-11-24 18:07:47 +00:00
d566722087 Install modular repos on Fedora 29+ systems 2018-11-20 20:26:33 +00:00
e495dcf142 Revert "the openqa-aarch64 boxes are fedora 27 still"
This reverts commit 2d54833dd1.
2018-06-08 22:29:28 +00:00