15 Commits

Author SHA1 Message Date
Alfredo Moralejo
25f110c399 Add CentOS Stream 9 to configure-mirrors role
So that we use AFS mirrors for CS9 nodes.

Closes-Bug: #1959181
Change-Id: I2da3a5e8a45598c6b3ded132ea61b86b4480e262
2022-01-27 15:05:46 +01:00
Gorka Eguileor
4284afc584 Fix CentOS wheel mirror URL
For CentOS we are currently using default values for "wheel_mirror" from
roles/configure-mirrors/defaults/main.yaml, which means that the URL
uses the full distribution version, which is wrong, we should be using
the major version instead.

As an example, centos-8 jobs are trying to use
  https://mirror.bhs1.ovh.opendev.org/wheel/centos-8.3-x86_64
When they should be using
  https://mirror.bhs1.ovh.opendev.org/wheel/centos-8-x86_64

Which makes some jobs fail to find alembic wheel files and then they
fail to build from source because the CI was expecting the wheel mirror
to have it.

This patch fixes this by creating a Centos specific "wheel_mirror"
variable.

Change-Id: I11199cf943a3070fd62bf486fe2b06381db4b04d
(cherry picked from commit c9cad38eebf1bdabb10b79699598d6ba0f098f54)
2021-01-19 14:13:04 +01:00
Clark Boylan
9471b8c42b Add option to prefer https/ssl in configure-mirrors
We should offer the option of https in addition to http in our
configure-mirrors role as users may want to consume mirrors using https.
This has become more viable in recent years with the releases of Debian
Buster and Ubuntu Bionic supporting it out of the box.

Change-Id: I747c1a379dfce9469e643d7fa199c8e8554f5289
2020-05-20 15:16:34 -07:00
Xinliang Liu
e330de0e09 Use debian-security mirror
debian-security has been mirrored by change[1], so we can use
it now.

[1] https://review.openstack.org/#/c/577316/

Change-Id: I2c88306564b04db3c6e061ab52545c5a63665e53
2018-06-27 11:03:34 +08:00
Ian Wienand
44bc52a539 Add arm64 support to mirror setup
Load the variables from an architecture specific file first --
ansible's ansible_architecture fact for arm64 is aarch64 (it's all
confusing, Ubuntu calls it arm64).  Add this file that sets up the
repo as "ubuntu-ports", which is our mirror of ports.ubuntu.com

Change-Id: Ieb50ae29c7f822e831ef1e32fdd03f74a93e298a
2018-03-07 13:49:26 +11:00
Dirk Mueller
294e9cbe1d Set wheels-mirror for openSUSE Tumbleweed
Unfortunately ansible_distribution is "openSUSE Tumbleweed" on
tumbleweed, and the whitespace in there is harmful. as there
isn't a version with tumbleweed, we can just replace
distribution/version with "opensuse-tumbleweed".

Change-Id: I21da4b5f851ec864dfb3cbf8ea6713bc12cda58f
2018-03-02 16:48:49 +01:00
Tristan Cacqueray
77886345df Fix pep8/yamllint errors
Change-Id: I1fdfc0e6a96a70623058139335a22325418a0fa4
2018-01-02 06:43:26 +00:00
David Moreau-Simard
31cf863e3b Remove junk non-ascii whitespaces
Sorry :(

Change-Id: Ia3863d07d712466517d982bd5022d265c1fcfac3
2017-09-14 09:40:25 -06:00
David Moreau-Simard
97e764be26 Add support for opensuse in configure-mirrors
Change-Id: Ic73b502277314555513e548aafb9231550fa1401
2017-09-07 20:22:41 +00:00
David Moreau-Simard
a3fd046cc8 Add support for fedora in configure-mirrors
Change-Id: I05d87e2a846c2b72eee80e06eeceeb1f92e39f42
2017-09-07 20:22:30 +00:00
David Moreau-Simard
b2ccb986a9 Add support for debian in configure-mirrors
Change-Id: Ib7230c69d31d075392d738cbf7e1685fd46480c4
2017-09-07 20:22:15 +00:00
David Moreau-Simard
8ac328ec21 Add support for centos in configure-mirrors
Change-Id: Ia62c60fb9bd7e8e19d9349fa9675aa379b872924
2017-09-07 20:22:08 +00:00
David Moreau-Simard
d45cfa287d Streamline configure-mirrors and Ubuntu repository setup
- Improve the structure to support multiple distributions
- Use one task to set up the different repository files
- Use handler to update the apt cache

Change-Id: I90933164cbca9d230cebeb3e2e1263c7806db840
2017-09-07 15:37:31 -04:00
Paul Belanger
e59abec7a3 Rename mirror_host to mirror_fqdn in configure-mirrors
It make more sense to revert to mirror_fqdn, since it is a FQDN.

Change-Id: I4a0749b64a71e551e4fbea5b416b46d2d6433d0b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-03 14:53:57 -04:00
Paul Belanger
8638ac3e2a
Create configure-mirrors role
This will be used to replace our current confgure_mirror.sh script
that we today as a ready-script in nodepool.

This only adds support for ubuntu today. As we move forward and
configuration openstack-infra from JJB to ansible, we'll need to add
more distros.

Attach the role to the unittests base job for now. It should ultimately
be attached to the base job, but adding it to the unittests job lets us
test it more easily.

Co-Authored-By: Monty Taylor <mordred@inaugust.com>
Change-Id: I9bfa28c87390c09bb2c4cd0de6ce4c7890f8d81a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-07-11 14:56:12 -04:00