37 Commits

Author SHA1 Message Date
Takashi Kajinami
a3b1787090 CentOS: Deprecate the stream parameter
... because now only CentOS Steam 9 is supported.

Change-Id: I9d39f23159505cec8fbcdd055e6c1fed4b995115
2022-06-12 01:28:35 +09:00
Takashi Kajinami
41f06f8f7b cs9: Fix URL for OpenStack packages
CentOS Stream 9 packages are hosted at mirror.stream.centos.org instead
of mirror.centos.org. Also the directory structure is a bit different
in the new mirror server.

Closes-Bug: #1978332
Change-Id: Ie8436a527fc308b70a7c3b34fb86a32604f836ff
2022-06-10 17:50:15 +00:00
Takashi Kajinami
351cd24276 CentOS: Switch to yoga release
Change-Id: I77f2b1e229dc9b6cd84bc0dddcfbf9582b7312dc
2022-06-10 17:49:34 +00:00
Takashi Kajinami
7c456d4b69 cs9: Do not enable advanced virtualization repository
The advanced virtualization repository is not available for CentOS
Stream 9. This change disables the repository by default accordingly.

Closes-Bug: #1969484
Change-Id: If888cf4f37a625f54ba89ae40a4f30e76c11987e
2022-04-22 06:56:49 +00:00
Takashi Kajinami
0271adfc05 Use stable/xena release by default
... instead of old stable/victoria.

Change-Id: I29d6a3043260a3258266b87ca50bcc90befb42ee
2022-02-06 01:23:30 +09:00
Tobias Urdin
ad70eae45b Set module_hotfixes=true for yumrepo if Puppet >= 6.15.0
The RDO and CentOS Advanced Virt repositories contains
packages that should be considered hotfixes to version
found in Base repo and similar and should have priority
over them.

The yumrepo_core [1] change that was released in 1.0.7
adds the module_hotfixes parameter to yumrepo and it's
included in Puppet >= 6.15.0 which we should set to true
to make sure packages in RDO and CentOS Advanced Virt
repos is considered hotfixes upon base packages.

When we only support Puppet 7 and forward we should set
this by default for the yumrepo resources.

[1] a14c059b7d

Depends-On: https://review.opendev.org/c/792966
Change-Id: Ie747273e2ce23fadba0f3946e227ee143c1632db
2021-06-04 07:39:08 +00:00
Tobias Urdin
655fa83e4d Rename rdo-qemu-ev repo to centos-advanced-virt
Change-Id: I5c6867be7432f1a90410911325aeb8dcda74b19f
2021-04-29 15:14:24 +02:00
Tobias Urdin
edf439e71c Cleanup RedHat repo
Remove old compatibility code for CentOS 7,
cleanup code and made it more logical and easier
to read. Rework all testing so we test everything.

Change-Id: Ia8564dec7da0c19fe1d0f45fba7ba5f21238aa4a
2021-04-29 15:06:37 +02:00
Tobias Urdin
cf8b734766 Update stream parameter default to true
Change-Id: Ia2787b432ae76f99f10f98791832b50838ac3171
2021-04-28 11:14:09 +02:00
Tobias Urdin
3ecddc5926 Add stream parameter to openstack_extras::repo::redhat::redhat
Change-Id: I66bbc9c84a309da451748734f23f43d4f4277cc1
2021-04-27 11:29:36 +02:00
Takashi Kajinami
b35d3c3015 Switch to Victoria
... because Victoria has already been released.

Change-Id: I36e4872ea726808be9580c2818028053c23dba18
2020-12-03 22:17:04 +09:00
Takashi Kajinami
cc751868cf [RedHat] Set up yum repositories from repo file
This patch allows operators to use .repo file directly to configure
yum repogitories on RHEL/CentOS node, so that they can use the .repo
file provided in RDO repository directly.
This is useful especially in RDO CentOS8, because now it provides
seprated repogitory namespaces for modules.

Depends-on: https://review.opendev.org/#/c/742146/
Change-Id: I53c30652df0168f941bec10d0f462e44512ce39a
2020-07-21 23:32:39 +09:00
Takashi Kajinami
30296ad28e Require yum-plugin-priorities only in CentOS/RHEL<8
... because it was merged into dnf package since CentOS/RHEL8.

Change-Id: I468935b91c5dd2e06cffab26c78eff1843c207cd
2020-05-11 10:46:38 +09:00
Zuul
72578c858f Merge "Remove old EPEL compat code" 2020-04-04 02:47:31 +00:00
Tobias Urdin
b365e5866e Remove old EPEL compat code
This compat code is not required anymore
since we dont support older versions anymore.

Change-Id: Iafdaabd7542194998e9c685d42d0d11458812200
2020-04-03 01:27:27 +02:00
Tobias Urdin
972f66aeae Replace hardcoded CentOS version with fact
Changes the hardcoded CentOS version with
using the major OS release fact.

Change-Id: Id04670b11fb16270bc6e3e220dd0d80086df90e4
2020-03-30 10:42:08 +02:00
Tobias Urdin
19e42853db Move repo defaults to Ussuri
Move the EPEL testing to its own context
because we were testing with a specified
value that was not the default.

Change-Id: Ib51009fb3584ea6ec8f423a5e8b2486714e47fe8
2019-10-11 15:36:39 +00:00
Tobias Urdin
63e2294562 Update repos to Train
Make sure to change these early so that we don't
forget them when releasing next release.

We are overriding these in testing so they don't
cause any troubles.

Change-Id: Iade37928e9875019c6fbf89827abaab9ec7831b3
2019-03-26 19:30:56 +01:00
Tobias Urdin
4197ccc346 Change repos to stein
This changes the repos from rocky to stein.
It's safe from a testing perspective since we
pin these in p-o-i.

Change-Id: If9f1b9eec21b14aad41fd6c91d764b433bca2930
2018-11-26 14:47:36 +01:00
Tobias Urdin
cdab2825cc Convert spec testing to use rspec-puppet-facts
Change-Id: I1cc953467862e0dbdf25898a91f3331fcffd05db
2018-11-02 14:02:28 +00:00
Tobias Urdin
6470697839 Prepare repos to rocky
Make default use rocky, just a preparation
to so it's not forgotten when its released.

We still pin version in p-o-i so we should be fine.

Change-Id: Ie687a1386e09a2db86caab57cde938224f79777e
2018-04-09 11:40:02 +02:00
Mohammed Naser
fbe6290b4e
Bump default release to Pike
Change-Id: Ie362d8ba62653c15b5e6d89fa8db67772b2e97d1
2017-09-05 12:34:17 -04:00
Emilien Macchi
46525780e9 Bump default release to Ocata
Bump default releases of repos from newton to ocata.

Change-Id: Id0b0aa2d5c17740d92976cdfe41b2b213ced1cd6
2017-01-25 11:50:59 -05:00
Alfredo Moralejo
f1ab3bba85 Remove priority for non-delorean RDO repos
RDO doesn't set priority in repository configuration via
rdo-release or centos openstack releases rpms.

This is currently being a problem as dependencies for qemu-kvm-ev-2.6.0
must be resolved from base and RDO ships same packages with lower VR
for historical reasons.

Change-Id: Ifb0ec9ca8a98a15984145972e99915e7eb23eb99
2016-12-15 16:09:50 +01:00
Emilien Macchi
bec2257397 repos: configure RDO Virtualization repository
Introduce manage_virt boolean (True by default) to whether or not
configure RDO CentOS QEMU EV repository, required when deploying
OpenStack Newton with RDO repositories.

Change-Id: If62801a4975039714d9986a548b2144e448e00f7
2016-09-30 08:45:07 -04:00
Emilien Macchi
46486f15a1 repo: switch defaults to Newton
Newton is about to be released, let's bump the default version.

Change-Id: If052e7ce86512d038e84464f2e1992a5ba591de7
2016-09-17 13:25:46 -04:00
Emilien Macchi
481fe00110 repo/redhat: install yum-plugin-priorities prior to Yumrepo
yum-plugin-priorities needs to be installed before installing any
package, otherwise if we install it after having repos in place, it
becomes useless.

This patch makes sure we install yum-plugin-priorities before any
Yumrepo resource, so we make sure that Yum priorities will be addressed
correctly.

Change-Id: If99af9b7fd90b1408747a4be874aebeb05dfb2d6
2016-05-20 16:32:11 +02:00
Emilien Macchi
0fcefb98e6 Allow to change CentOS mirror URL
With a new parameter, centos_mirror_url, allow to change the CentOS
mirror URL.

Change-Id: Ibde2a03bd650610410cc7d8c02f8ca66a3e50de9
2016-05-13 21:58:42 +02:00
Emilien Macchi
bbaf0667ae repos/redhat: install yum-plugin-priorities
yum-plugin-priorities package is needed when running RDO trunk
packaging, repositories have priorities and we need to address them.

This patch adds a boolean: $manage_priorities, set to True by default.
If set to False, yum-plugin-priorities package won't be installed by
this module.

Change-Id: I3ac207f744847b5742fc331d2c16d1dad475f9ea
2016-01-27 14:08:07 -05:00
Emilien Macchi
3626baf4a3 bump to mitaka
In openstack_extras_repo_spec, we hardcode the version of the release.
It was liberty, it's now mitaka since our recent CI bump.

Change-Id: I90b6f0bbeb76c870f0ab26cf0ff9bdcbb0cb5ca8
Partial-Bug: #1535382
2016-01-20 16:01:03 -05:00
Alex Schultz
9823bd1d51 Add os_service_default fact for tests
This change adds the os_service_default for tests as they are currently
failing due to a pick() failing because os_service_default is not
defined as a fact.

Change-Id: Ib095e946a964e29e7fb624ca6e6dd24477787a1e
2016-01-08 16:21:18 -07:00
Emilien Macchi
91fac8eab8 Bump UCA & RDO to Liberty GA
* Bump from Kilo to Liberty by default for RDO repository, Debian and
  UCA.
* Update GPG KEY files

Change-Id: I709ae10101b7156a60efc10e88866abe3e643417
2015-11-02 16:58:42 -05:00
Gael Chamoulaud
e005145df1 Fix RSpec 3.x syntax
* 41 conversions
    from: it { should ... }
      to: it { is_expected.to ... }

* 5 conversions
    from: it { should_not ... }
      to: it { is_expected.to_not ... }

Change-Id: I143aec9fa309b4bbd664fa205b044131cfadc03b
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-09-14 09:53:00 +02:00
Emilien Macchi
697f8a09ab repo/redhat: manage EPEL with metalink instead of baseurl
Yum can process the mirror list in metalink format, which provides additional
security checking capability.
Yum compares the SHA1 checksums of each repository's repomd.xml file against
that of the master mirrors.
This ensures that significantly out-of-date mirrors are not used and
should reduce our CI timeouts issues.

Change-Id: I5beb0de2bca28b12001aaae01b5503d69bfb7727
2015-06-29 13:59:02 -04:00
Colleen Murphy
4992c56faf Fix kilo repo installation for RedHat
In kilo, the RDO repository changed the end of its URL path from
'epel-7' to 'el7' for RedHat and CentOS and from 'fedora-#' to 'f#'.
Judging by the liberty testing repository, this will continue to be the
pattern for future releases. This patch adds logic to use the correct
path for Kilo and future releases. It also updates the GPG key to use
the correct one from the RDO-release repository[1].

[1] https://github.com/redhat-openstack/rdo-release/blob/master/RPM-GPG-KEY-RDO-kilo

Change-Id: Ia309b78e81236dee95d2d741fece323929b35709
2015-06-22 13:39:51 -07:00
Emilien Macchi
610313ca08 repo: bump to Kilo by default
* Add RPM-GPG-KEY-RDO-Kilo for RPM repo.
* Default debian, ubuntu and RDO to Kilo release.

Change-Id: Id652c33953f3be1adeee592138fe6d0311d98426
2015-05-08 20:13:17 -04:00
Michael Chapman
0fc013377b Add hash based repository management
This patch adds support for managing repos
for major distros, separated by osfamily at
the top level and operatingsystem below that.

Since redhat, fedora and centos can all install
from rdo, which is the only current option, the
fedora and centos classes simply wrap around the
redhat one. This may change in the future if any
of them change (for example if RHOS support is
added and redhat is now different to fedora)

Change-Id: I5b18f393999d6f70757a2dfd9b12da049d6b64e1
2014-11-27 22:12:25 +11:00