Skip to content

Commit d0b24c5

Browse files
committed
Stop syncing Focal repos
1 parent 60b4d1a commit d0b24c5

File tree

3 files changed

+89
-52
lines changed

3 files changed

+89
-52
lines changed

ansible/inventory/group_vars/all/package-repos

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -28,47 +28,13 @@ package_sync_group: ""
2828
# sync: Whether to sync the repository with a remote. Optional, default is true.
2929
# publish: Whether to publish and distribute the repository. Optional, default is true.
3030
deb_package_repos:
31-
# Base Ubuntu Focal 20.04 repositories
32-
- name: Ubuntu focal
33-
url: http://archive.ubuntu.com/ubuntu
34-
policy: immediate
35-
architectures: amd64
36-
components: main restricted universe multiverse
37-
# NOTE: Include focal-security here to include all dists under one mirror
38-
# path. This allows us to include security updates when using
39-
# DIB_DISTRIBUTION_MIRROR with the Diskimage builder ubuntu-minimal
40-
# element.
41-
distributions: focal focal-updates focal-backports focal-security
42-
mirror: true
43-
mode: verbatim
44-
base_path: ubuntu/focal/
45-
short_name: ubuntu_focal
46-
sync_group: ubuntu_focal
47-
distribution_name: ubuntu-focal-
48-
49-
# https://wiki.ubuntu.com/SecurityTeam/FAQ suggests that security.ubuntu.com
50-
# is preferable for security updates, so use this in preference to the
51-
# focal-security dist in the main Ubuntu focal repository where possible.
52-
- name: Ubuntu focal security
53-
url: http://security.ubuntu.com/ubuntu
54-
policy: immediate
55-
architectures: amd64
56-
components: main restricted universe multiverse
57-
distributions: focal-security
58-
mirror: true
59-
mode: verbatim
60-
base_path: ubuntu/focal-security/
61-
short_name: ubuntu_focal_security
62-
sync_group: ubuntu_focal
63-
distribution_name: ubuntu-focal-security-
64-
6531
# Ubuntu Cloud Archive (UCA)
6632
- name: Ubuntu Cloud Archive
6733
url: http://ubuntu-cloud.archive.canonical.com/ubuntu
6834
policy: immediate
6935
architectures: amd64
7036
components: main
71-
distributions: focal-updates/yoga jammy-updates/zed jammy-updates/antelope jammy-updates/caracal noble-updates/epoxy
37+
distributions: jammy-updates/zed jammy-updates/antelope jammy-updates/caracal noble-updates/epoxy
7238
mirror: true
7339
mode: verbatim
7440
base_path: ubuntu-cloud-archive/
@@ -148,19 +114,6 @@ deb_package_repos:
148114

149115
## Separate repositories for each distribution because
150116
## https://github.com/pulp/pulp_deb/issues/921
151-
- name: Docker CE for Ubuntu Focal
152-
url: https://download.docker.com/linux/ubuntu
153-
policy: immediate
154-
architectures: amd64
155-
distributions: focal
156-
components: stable
157-
mirror: true
158-
mode: verbatim
159-
base_path: docker-ce/ubuntu-focal/
160-
short_name: docker_ce_ubuntu_focal
161-
sync_group: docker
162-
distribution_name: docker-ce-for-ubuntu-focal-
163-
164117
- name: Docker CE for Ubuntu Jammy
165118
url: https://download.docker.com/linux/ubuntu
166119
policy: immediate

ansible/inventory/group_vars/all/package-repos-deprecated

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,91 @@
33
# The repos in this file are deprecated and are shown here for reference only
44
#############################################################################
55

6+
###############################################################################
7+
# Deb
8+
9+
# List of Deb package repositories.
10+
# Each item is a dict with the following items:
11+
# name: Repository name.
12+
# url: URL of upstream package mirror.
13+
# policy: Policy for upstream remote. Optional.
14+
# architectures: Architectures to sync.
15+
# components: Components to sync.
16+
# distributions: Distributions to sync.
17+
# mirror: If True, synchronization will remove all content that is not present
18+
# in the remote repository. If False, sync will be additive only.
19+
# Optional, default is true.
20+
# mode: Publication mode.
21+
# base_path: Base path prefix for distributions.
22+
# short_name: Name used internally for variable names.
23+
# sync_group: Repos with the same group will be synced at the same time
24+
# distribution_name: Name prefix for distributions. Version will be appended.
25+
# sync: Whether to sync the repository with a remote. Optional, default is true.
26+
# publish: Whether to publish and distribute the repository. Optional, default is true.
27+
deprecated_deb_package_repos:
28+
# Base Ubuntu Focal 20.04 repositories
29+
- name: Ubuntu focal
30+
url: http://archive.ubuntu.com/ubuntu
31+
policy: immediate
32+
architectures: amd64
33+
components: main restricted universe multiverse
34+
# NOTE: Include focal-security here to include all dists under one mirror
35+
# path. This allows us to include security updates when using
36+
# DIB_DISTRIBUTION_MIRROR with the Diskimage builder ubuntu-minimal
37+
# element.
38+
distributions: focal focal-updates focal-backports focal-security
39+
mirror: true
40+
mode: verbatim
41+
base_path: ubuntu/focal/
42+
short_name: ubuntu_focal
43+
sync_group: ubuntu_focal
44+
distribution_name: ubuntu-focal-
45+
46+
# https://wiki.ubuntu.com/SecurityTeam/FAQ suggests that security.ubuntu.com
47+
# is preferable for security updates, so use this in preference to the
48+
# focal-security dist in the main Ubuntu focal repository where possible.
49+
- name: Ubuntu focal security
50+
url: http://security.ubuntu.com/ubuntu
51+
policy: immediate
52+
architectures: amd64
53+
components: main restricted universe multiverse
54+
distributions: focal-security
55+
mirror: true
56+
mode: verbatim
57+
base_path: ubuntu/focal-security/
58+
short_name: ubuntu_focal_security
59+
sync_group: ubuntu_focal
60+
distribution_name: ubuntu-focal-security-
61+
62+
# Ubuntu Cloud Archive (UCA)
63+
- name: Ubuntu Cloud Archive
64+
url: http://ubuntu-cloud.archive.canonical.com/ubuntu
65+
policy: immediate
66+
architectures: amd64
67+
components: main
68+
distributions: focal-updates/yoga
69+
mirror: true
70+
mode: verbatim
71+
base_path: ubuntu-cloud-archive/
72+
short_name: ubuntu_cloud_archive
73+
sync_group: ubuntu_cloud_archive
74+
distribution_name: ubuntu-cloud-archive-
75+
76+
# Docker CE for Ubuntu Focal
77+
- name: Docker CE for Ubuntu Focal
78+
url: https://download.docker.com/linux/ubuntu
79+
policy: immediate
80+
architectures: amd64
81+
distributions: focal
82+
components: stable
83+
mirror: true
84+
mode: verbatim
85+
base_path: docker-ce/ubuntu-focal/
86+
short_name: docker_ce_ubuntu_focal
87+
sync_group: docker
88+
distribution_name: docker-ce-for-ubuntu-focal-
89+
90+
691
# RPM
792

893
# List of RPM package repositories.

ansible/validate-deb-repos.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,9 @@
8181
- name: Assert that Deb package repository list can be filtered to one group
8282
ansible.builtin.assert:
8383
that:
84-
- deb_package_repos_filtered | length == 3
85-
- deb_package_repos_filtered[0].short_name == 'docker_ce_ubuntu_focal'
86-
- deb_package_repos_filtered[1].short_name == 'docker_ce_ubuntu_jammy'
87-
- deb_package_repos_filtered[2].short_name == 'docker_ce_ubuntu_noble'
84+
- deb_package_repos_filtered | length == 2
85+
- deb_package_repos_filtered[0].short_name == 'docker_ce_ubuntu_jammy'
86+
- deb_package_repos_filtered[1].short_name == 'docker_ce_ubuntu_noble'
8887
vars:
8988
package_sync_group: docker
9089

0 commit comments

Comments
 (0)