Skip to content

Commit 5b33864

Browse files
Add Ubuntu Jammy repository config in Yoga. (#578)
* Add Ubuntu Jammy repository config * Updated docs for jammy config * Docker and UCA repository corrections * Consolidating repository config in pulp.yml * Release note for changes
1 parent e606186 commit 5b33864

File tree

9 files changed

+55
-19
lines changed

9 files changed

+55
-19
lines changed

doc/source/configuration/release-train.rst

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ This configuration provides the following:
3838

3939
* Configuration to deploy a local Pulp service as a container on the seed
4040
* Pulp repository definitions for CentOS Stream 8, Rocky Linux 8/9 and Ubuntu
41-
Focal
41+
Focal/Jammy
4242
* Playbooks to synchronise a local Pulp service with Ark
4343
* Configuration to use the local Pulp repository mirrors on control plane hosts
4444
* Configuration to use the local Pulp container registry on control plane hosts
@@ -80,14 +80,12 @@ The Ark pulp credentials issued by StackHPC should be configured in
8080
Package repositories
8181
--------------------
8282

83-
Currently, Ark does not provide package repositories for Ubuntu Jammy 22.04 -
84-
only container images.
85-
86-
CentOS Stream 8, Rocky Linux 8/9, and Ubuntu Focal package repositories are
83+
CentOS Stream 8, Rocky Linux 8/9 and Ubuntu Focal/Jammy package repositories are
8784
synced based on the value of ``os_distribution`` and ``os_release`` . If you
88-
need to sync multiple RHEL-like distributions,
89-
``stackhpc_pulp_sync_centos_stream8``, ``stackhpc_pulp_sync_rocky_8`` and
90-
``stackhpc_pulp_sync_rocky_9`` in ``etc/kayobe/pulp.yml`` may be set to
85+
need to sync multiple RHEL-like distributions or Ubuntu releases,
86+
``stackhpc_pulp_sync_centos_stream8``, ``stackhpc_pulp_sync_rocky_8``
87+
``stackhpc_pulp_sync_rocky_9``, ``stackhpc_pulp_sync_ubuntu_jammy`` and
88+
``stackhpc_pulp_sync_ubuntu_focal`` in ``etc/kayobe/pulp.yml`` may be set to
9189
``true``.
9290

9391
On Ark, each package repository provides versioned snapshots using a datetime
@@ -99,10 +97,10 @@ repository.
9997
Package managers
10098
----------------
10199

102-
For Ubuntu Focal systems, the package manager configuration is provided by
100+
For Ubuntu Focal and Jammy systems, the package manager configuration is provided by
103101
``stackhpc_apt_repositories`` in ``etc/kayobe/apt.yml``.
104102

105-
The configuration is applied by default to all Ubuntu Focal hosts. The
103+
The configuration is applied by default to all Ubuntu Focal and Jammy hosts. The
106104
configuration can be overridden by changing the repository definitions in
107105
``apt_repositories`` or toggling ``apt_disable_sources_list`` to use the default
108106
apt repositories. This can be done on a host-by host basis by defining the

etc/kayobe/apt.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ apt_keys:
4848
# (optional, default is unset)
4949
# Default is an empty list.
5050
stackhpc_apt_repositories:
51-
- url: "{{ stackhpc_repo_ubuntu_focal_url }}"
51+
- url: "{{ stackhpc_repo_ubuntu_focal_url if ansible_facts.distribution_release == 'focal' else stackhpc_repo_ubuntu_jammy_url }}"
5252
suites: "{{ ansible_facts.distribution_release }} {{ ansible_facts.distribution_release }}-updates {{ ansible_facts.distribution_release }}-backports"
5353
components: main restricted universe multiverse
5454
architecture: amd64
55-
- url: "{{ stackhpc_repo_ubuntu_focal_security_url }}"
55+
- url: "{{ stackhpc_repo_ubuntu_focal_security_url if ansible_facts.distribution_release == 'focal' else stackhpc_repo_ubuntu_jammy_security_url }}"
5656
suites: "{{ ansible_facts.distribution_release }}-security"
5757
components: main restricted universe multiverse
5858
architecture: amd64
@@ -62,13 +62,12 @@ stackhpc_apt_repositories:
6262
signed_by: docker.asc
6363
architecture: amd64
6464

65-
# Disable pulp apt repos on Ubuntu Jammy until they are published.
66-
apt_repositories: "{{ [] if ansible_facts['distribution_release'] == 'jammy' else stackhpc_apt_repositories }}"
65+
apt_repositories: "{{ stackhpc_apt_repositories }}"
6766

6867
# Whether to disable repositories in /etc/apt/sources.list. This may be used
6968
# when replacing the distribution repositories via apt_repositories.
7069
# Default is false.
71-
apt_disable_sources_list: "{{ ansible_facts['distribution_release'] != 'jammy' }}"
70+
apt_disable_sources_list: true
7271

7372
###############################################################################
7473
# Dummy variable to allow Ansible to accept this file.

etc/kayobe/environments/ci-aio/stackhpc-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ stackhpc_repo_treasuredata_4_version: "{{ stackhpc_pulp_repo_treasuredata_4_vers
4242
stackhpc_repo_ubuntu_cloud_archive_version: "{{ stackhpc_pulp_repo_ubuntu_cloud_archive_version }}"
4343
stackhpc_repo_ubuntu_focal_version: "{{ stackhpc_pulp_repo_ubuntu_focal_version }}"
4444
stackhpc_repo_ubuntu_focal_security_version: "{{ stackhpc_pulp_repo_ubuntu_focal_security_version }}"
45+
stackhpc_repo_ubuntu_jammy_version: "{{ stackhpc_pulp_repo_ubuntu_jammy_version }}"
46+
stackhpc_repo_ubuntu_jammy_security_version: "{{ stackhpc_pulp_repo_ubuntu_jammy_security_version }}"
4547
stackhpc_repo_docker_ce_ubuntu_version: "{{ stackhpc_pulp_repo_docker_ce_ubuntu_version }}"
4648
stackhpc_repo_centos_stream_9_nfv_openvswitch_version: "{{ stackhpc_pulp_repo_centos_stream_9_nfv_openvswitch_version }}"
4749
stackhpc_repo_centos_stream_9_openstack_yoga_version: "{{ stackhpc_pulp_repo_centos_stream__openstack_yoga_version }}"

etc/kayobe/environments/ci-builder/stackhpc-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ stackhpc_repo_treasuredata_4_version: "{{ stackhpc_pulp_repo_treasuredata_4_vers
6666
stackhpc_repo_ubuntu_cloud_archive_version: "{{ stackhpc_pulp_repo_ubuntu_cloud_archive_version }}"
6767
stackhpc_repo_ubuntu_focal_version: "{{ stackhpc_pulp_repo_ubuntu_focal_version }}"
6868
stackhpc_repo_ubuntu_focal_security_version: "{{ stackhpc_pulp_repo_ubuntu_focal_security_version }}"
69+
stackhpc_repo_ubuntu_jammy_version: "{{ stackhpc_pulp_repo_ubuntu_jammy_version }}"
70+
stackhpc_repo_ubuntu_jammy_security_version: "{{ stackhpc_pulp_repo_ubuntu_jammy_security_version }}"
6971
stackhpc_repo_docker_ce_ubuntu_version: "{{ stackhpc_pulp_repo_docker_ce_ubuntu_version }}"
7072
stackhpc_repo_centos_stream_9_nfv_openvswitch_version: "{{ stackhpc_pulp_repo_centos_stream_9_nfv_openvswitch_version }}"
7173
stackhpc_repo_centos_stream_9_openstack_yoga_version: "{{ stackhpc_pulp_repo_centos_stream_9_openstack_yoga_version }}"

etc/kayobe/environments/ci-multinode/stackhpc-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ stackhpc_repo_treasuredata_4_version: "{{ stackhpc_pulp_repo_treasuredata_4_vers
4242
stackhpc_repo_ubuntu_cloud_archive_version: "{{ stackhpc_pulp_repo_ubuntu_cloud_archive_version }}"
4343
stackhpc_repo_ubuntu_focal_version: "{{ stackhpc_pulp_repo_ubuntu_focal_version }}"
4444
stackhpc_repo_ubuntu_focal_security_version: "{{ stackhpc_pulp_repo_ubuntu_focal_security_version }}"
45+
stackhpc_repo_ubuntu_jammy_version: "{{ stackhpc_pulp_repo_ubuntu_jammy_version }}"
46+
stackhpc_repo_ubuntu_jammy_security_version: "{{ stackhpc_pulp_repo_ubuntu_jammy_security_version }}"
4547
stackhpc_repo_docker_ce_ubuntu_version: "{{ stackhpc_pulp_repo_docker_ce_ubuntu_version }}"
4648
stackhpc_repo_centos_stream_9_nfv_openvswitch_version: "{{ stackhpc_pulp_repo_centos_stream_9_nfv_openvswitch_version }}"
4749
stackhpc_repo_centos_stream_9_openstack_yoga_version: "{{ stackhpc_pulp_repo_centos_stream_9_openstack_yoga_version }}"

etc/kayobe/pulp-repo-versions.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ stackhpc_pulp_repo_centos_stream_9_nfv_openvswitch_version: 20230510T072502
1515
stackhpc_pulp_repo_centos_stream_9_openstack_yoga_version: 20230310T163106
1616
stackhpc_pulp_repo_centos_stream_9_opstools_version: 20230301T034123
1717
stackhpc_pulp_repo_centos_stream_9_storage_ceph_pacific_version: 20230308T155704
18-
stackhpc_pulp_repo_docker_ce_ubuntu_version: 20230420T073634
18+
stackhpc_pulp_repo_docker_ce_ubuntu_version: 20230811T005529
1919
stackhpc_pulp_repo_docker_version: 20230203T025251
2020
stackhpc_pulp_repo_elasticsearch_logstash_kibana_7_x_version: 20230203T025251
2121
stackhpc_pulp_repo_epel_9_version: 20230302T031902
@@ -50,6 +50,8 @@ stackhpc_pulp_repo_rocky_9_2_crb_version: 20230627T185020
5050
stackhpc_pulp_repo_rocky_9_2_extras_version: 20230612T072506
5151
stackhpc_pulp_repo_rocky_9_2_highavailability_version: 20230628T031859
5252
stackhpc_pulp_repo_treasuredata_4_version: 20221105T035018
53-
stackhpc_pulp_repo_ubuntu_cloud_archive_version: 20230704T193136
53+
stackhpc_pulp_repo_ubuntu_cloud_archive_version: 20230811T105337
5454
stackhpc_pulp_repo_ubuntu_focal_security_version: 20230704T193136
5555
stackhpc_pulp_repo_ubuntu_focal_version: 20230704T193136
56+
stackhpc_pulp_repo_ubuntu_jammy_security_version: 20230811T044829
57+
stackhpc_pulp_repo_ubuntu_jammy_version: 20230811T044829

etc/kayobe/pulp.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ stackhpc_pulp_sync_for_local_container_build: false
6363

6464
# Whether to sync Ubuntu packages.
6565
stackhpc_pulp_sync_ubuntu_focal: "{{ os_release == 'focal' }}"
66+
stackhpc_pulp_sync_ubuntu_jammy: "{{ os_release == 'jammy' }}"
6667

6768
# Default configuration, which each element of stackhpc_pulp_deb_repos
6869
# is combined with
@@ -105,14 +106,31 @@ stackhpc_pulp_deb_repos:
105106
distributions: "focal-updates/{{ openstack_release }}"
106107
required: "{{ stackhpc_pulp_sync_ubuntu_focal | bool }}"
107108

109+
# Base Ubuntu Jammy repositories
110+
- name: "Ubuntu jammy"
111+
url: "{{ stackhpc_release_pulp_content_url }}/ubuntu/jammy/{{ stackhpc_pulp_repo_ubuntu_jammy_version }}"
112+
distribution_name: "ubuntu-jammy-"
113+
base_path: "ubuntu/jammy/"
114+
components: "main restricted universe multiverse"
115+
distributions: "jammy jammy-updates jammy-backports"
116+
required: "{{ stackhpc_pulp_sync_ubuntu_jammy | bool }}"
117+
118+
- name: "Ubuntu jammy security"
119+
url: "{{ stackhpc_release_pulp_content_url }}/ubuntu/jammy-security/{{ stackhpc_pulp_repo_ubuntu_jammy_security_version }}"
120+
distribution_name: "ubuntu-jammy-security-"
121+
base_path: "ubuntu/jammy-security/"
122+
components: "main restricted universe multiverse"
123+
distributions: "jammy-security"
124+
required: "{{ stackhpc_pulp_sync_ubuntu_jammy | bool }}"
125+
108126
# Third-party repositories
109127
- name: "Docker CE for Ubuntu"
110128
url: "{{ stackhpc_release_pulp_content_url }}/docker-ce/ubuntu/{{ stackhpc_pulp_repo_docker_ce_ubuntu_version }}"
111129
distribution_name: "docker-ce-for-ubuntu-"
112130
base_path: "docker-ce/ubuntu/"
113-
distributions: "focal"
131+
distributions: "focal jammy"
114132
components: "stable"
115-
required: "{{ stackhpc_pulp_sync_ubuntu_focal | bool }}"
133+
required: "{{ stackhpc_pulp_sync_ubuntu_focal or stackhpc_pulp_sync_ubuntu_jammy | bool }}"
116134

117135
# Publication format is a subset of distribution.
118136
stackhpc_pulp_publication_deb_development: "{{ stackhpc_pulp_distribution_deb_development }}"

etc/kayobe/stackhpc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ stackhpc_repo_ubuntu_focal_version: "{{ stackhpc_repo_distribution }}"
2222
stackhpc_repo_ubuntu_focal_security_url: "{{ stackhpc_repo_mirror_url }}/pulp/content/ubuntu/focal-security/{{ stackhpc_repo_ubuntu_focal_security_version }}"
2323
stackhpc_repo_ubuntu_focal_security_version: "{{ stackhpc_repo_distribution }}"
2424

25+
# Ubuntu jammy
26+
stackhpc_repo_ubuntu_jammy_url: "{{ stackhpc_repo_mirror_url }}/pulp/content/ubuntu/jammy/{{ stackhpc_repo_ubuntu_jammy_version }}"
27+
stackhpc_repo_ubuntu_jammy_version: "{{ stackhpc_repo_distribution }}"
28+
29+
# Ubuntu jammy security
30+
stackhpc_repo_ubuntu_jammy_security_url: "{{ stackhpc_repo_mirror_url }}/pulp/content/ubuntu/jammy-security/{{ stackhpc_repo_ubuntu_jammy_security_version }}"
31+
stackhpc_repo_ubuntu_jammy_security_version: "{{ stackhpc_repo_distribution }}"
32+
2533
# Ubuntu Cloud Archive
2634
stackhpc_repo_ubuntu_cloud_archive_url: "{{ stackhpc_repo_mirror_url }}/pulp/content/ubuntu-cloud-archive/{{ stackhpc_repo_ubuntu_cloud_archive_version }}"
2735
stackhpc_repo_ubuntu_cloud_archive_version: "{{ stackhpc_repo_distribution }}"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
features:
3+
- |
4+
Support for Ubuntu 22.04 Jammy Jellyfish
5+
repositories have been added to the Yoga Release.

0 commit comments

Comments
 (0)