Skip to content

Commit d992577

Browse files
committed
Add noble configs to Caracal
1 parent 7741f2f commit d992577

29 files changed

+271
-37
lines changed

etc/kayobe/ansible/ubuntu-upgrade.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
---
22
# To prevent Ansible role dependency errors, this playbook requires that environment variable
33
# ANSIBLE_ROLES_PATH is defined and includes '$KAYOBE_PATH/ansible/roles' on the Ansible control host.
4-
- name: Migrate hosts from Ubuntu Focal 20.04 to Jammy 22.04
4+
- name: Migrate hosts from Ubuntu Jammy 22.04 to Noble 24.04
55
hosts: overcloud:infra-vms:seed:seed-hypervisor
66
vars:
77
ansible_python_interpreter: /usr/bin/python3
88
reboot_timeout_s: "{{ 20 * 60 }}"
99
tasks:
10-
- name: Assert that hosts are running Ubuntu Focal
10+
- name: Assert that hosts are running Ubuntu Jammy
1111
ansible.builtin.assert:
1212
that:
1313
- ansible_facts.distribution == 'Ubuntu'
14-
- ansible_facts.distribution_major_version == '20'
15-
- ansible_facts.distribution_release == 'focal'
14+
- ansible_facts.distribution_major_version == '22'
15+
- ansible_facts.distribution_release == 'jammy'
1616
- os_distribution == 'ubuntu'
1717
fail_msg: >-
18-
This playbook is only designed for Ubuntu Focal 20.04 hosts. Ensure
19-
that you are limiting it to only run on Focal hosts and
18+
This playbook is only designed for Ubuntu Jammy 22.04 hosts. Ensure
19+
that you are limiting it to only run on Jammy hosts and
2020
os_distribution is set to ubuntu.
2121
2222
- name: Ensure apt packages are up to date
@@ -53,14 +53,14 @@
5353
when: file_status.stat.exists
5454

5555
# NOTE: We cannot use apt_repository here because definitions must exist within the standard repos.list
56-
- name: Ensure Jammy repo definitions exist in sources.list
56+
- name: Ensure Noble repo definitions exist in sources.list
5757
ansible.builtin.blockinfile:
5858
path: /etc/apt/sources.list
5959
block: |
60-
deb {{ stackhpc_repo_ubuntu_jammy_url }} jammy main restricted universe multiverse
61-
deb {{ stackhpc_repo_ubuntu_jammy_url }} jammy-updates main restricted universe multiverse
62-
deb {{ stackhpc_repo_ubuntu_jammy_url }} jammy-backports main restricted universe multiverse
63-
deb {{ stackhpc_repo_ubuntu_jammy_security_url }} jammy-security main restricted universe multiverse
60+
deb {{ stackhpc_repo_ubuntu_noble_url }} noble main restricted universe multiverse
61+
deb {{ stackhpc_repo_ubuntu_noble_url }} noble-updates main restricted universe multiverse
62+
deb {{ stackhpc_repo_ubuntu_noble_url }} noble-backports main restricted universe multiverse
63+
deb {{ stackhpc_repo_ubuntu_noble_security_url }} noble-security main restricted universe multiverse
6464
become: true
6565

6666
- name: Do release upgrade
@@ -87,13 +87,13 @@
8787
- name: Run the Kayobe network configuration playbook, to ensure definitions are not lost on reboot
8888
import_playbook: "{{ lookup('ansible.builtin.env', 'VIRTUAL_ENV') }}/share/kayobe/ansible/network.yml"
8989

90-
- name: Reboot and confirm the host is upgraded to Jammy 22.04
90+
- name: Reboot and confirm the host is upgraded to Noble 24.04
9191
hosts: overcloud:infra-vms:seed:seed-hypervisor
9292
vars:
9393
ansible_python_interpreter: /usr/bin/python3
9494
reboot_timeout_s: "{{ 20 * 60 }}"
9595
tasks:
96-
- name: Ensure Jammy repo definitions do not exist in sources.list
96+
- name: Ensure Noble repo definitions do not exist in sources.list
9797
ansible.builtin.blockinfile:
9898
path: /etc/apt/sources.list
9999
state: absent
@@ -126,8 +126,8 @@
126126
filter: "{{ kayobe_ansible_setup_filter }}"
127127
gather_subset: "{{ kayobe_ansible_setup_gather_subset }}"
128128

129-
- name: Assert that hosts are now using Ubuntu 22
129+
- name: Assert that hosts are now using Ubuntu 24
130130
ansible.builtin.assert:
131131
that:
132-
- ansible_facts.distribution_major_version == '22'
133-
- ansible_facts.distribution_release == 'jammy'
132+
- ansible_facts.distribution_major_version == '24'
133+
- ansible_facts.distribution_release == 'noble'

etc/kayobe/apt.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,22 @@ stackhpc_apt_repositories:
7878
signed_by: ceph.asc
7979
architecture: amd64
8080
required: true
81+
- url: "{{ stackhpc_repo_ubuntu_noble_url }}"
82+
suites: "{{ ansible_facts.distribution_release }} {{ ansible_facts.distribution_release }}-updates {{ ansible_facts.distribution_release }}-backports"
83+
components: main restricted universe multiverse
84+
architecture: amd64
85+
required: true
86+
- url: "{{ stackhpc_repo_ubuntu_noble_security_url }}"
87+
suites: "{{ ansible_facts.distribution_release }}-security"
88+
components: main restricted universe multiverse
89+
architecture: amd64
90+
required: true
91+
- url: "{{ stackhpc_repo_docker_ce_ubuntu_noble_url }}"
92+
suites: "{{ ansible_facts.distribution_release }}"
93+
components: stable
94+
signed_by: docker.asc
95+
architecture: amd64
96+
required: true
8197

8298
# Do not replace apt configuration for non-overcloud hosts. This can result in
8399
# errors if apt reconfiguration is performed before local repository mirrors

etc/kayobe/cephadm.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Cephadm deployment configuration.
44

55
# Ceph release name.
6-
cephadm_ceph_release: "reef"
6+
cephadm_ceph_release: "{{ 'squid' if (ansible_facts['distribution_release'] == 'noble') else 'reef' }}"
77

88
# Ceph FSID.
99
#cephadm_fsid:
@@ -12,10 +12,10 @@ cephadm_ceph_release: "reef"
1212
cephadm_image: "{{ stackhpc_docker_registry if stackhpc_sync_ceph_images | bool else 'quay.io' }}/ceph/ceph:{{ cephadm_image_tag }}"
1313

1414
# Ceph container image tag.
15-
cephadm_image_tag: "v18.2.4"
15+
cephadm_image_tag: "{{ 'v19.2.1' if os_release == 'noble' else 'v18.2.4' }}"
1616

17-
# Ceph custom repo workaround for Ubuntu Jammy as there are no official ceph repos for jammy.
18-
cephadm_custom_repos: "{{ ansible_facts['distribution_release'] == 'jammy' }}"
17+
# Ceph custom repo workaround for Ubuntu as there are no official ceph repos for Ubuntu jammy and noble.
18+
cephadm_custom_repos: "{{ ansible_facts['ansible_distribution'] == 'Ubuntu' }}"
1919

2020
# HAProxy container image.
2121
cephadm_haproxy_image: "{{ stackhpc_docker_registry if stackhpc_sync_ceph_images | bool else 'quay.io' }}/ceph/haproxy:{{ cephadm_haproxy_image_tag }}"

etc/kayobe/environments/aufn-ceph/globals.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
os_distribution: "{{ lookup('pipe', '. /etc/os-release && echo $ID') | trim }}"
1010

1111
# OS release. Valid options are "9" when os_distribution is "rocky", or
12-
# "jammy" when os_distribution is "ubuntu".
12+
# "jammy" and "noble" when os_distribution is "ubuntu".
1313
os_release: >-
1414
{{ (lookup('pipe', '. /etc/os-release && echo $VERSION_CODENAME') | trim) if os_distribution == 'ubuntu' else
1515
(lookup('pipe', '. /etc/os-release && echo $VERSION_ID') | trim | split('.') | first) if os_distribution == 'rocky' }}

etc/kayobe/environments/aufn-ceph/kolla/config/bifrost/bifrost.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ download_ipa: true
66

77
# Use a locally hosted cloud image.
88
use_cirros: true
9-
{% if os_distribution == 'ubuntu' %}
9+
{% if os_distribution == 'ubuntu' and os_release == 'jammy' %}
1010
cirros_deploy_image_upstream_url: "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
11+
{% elif os_distribution == 'ubuntu' and os_release == 'noble' %}
12+
cirros_deploy_image_upstream_url: "https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img"
1113
{% else %}
1214
cirros_deploy_image_upstream_url: "https://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud.latest.x86_64.qcow2"
1315
{% endif %}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
os_distribution: "{{ lookup('pipe', '. /etc/os-release && echo $ID') | trim }}"
5151

5252
# OS release. Valid options are "9" when os_distribution is "rocky", or
53-
# "jammy" when os_distribution is "ubuntu".
53+
# "jammy" and "noble" when os_distribution is "ubuntu".
5454
os_release: >-
5555
{{ (lookup('pipe', '. /etc/os-release && echo $VERSION_CODENAME') | trim) if os_distribution == 'ubuntu' else
5656
(lookup('pipe', '. /etc/os-release && echo $VERSION_ID') | trim | split('.') | first) if os_distribution == 'rocky' }}

etc/kayobe/environments/ci-aio/inventory/group_vars/cis-hardening/cis

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@ rhel9cis_rule_5_4_3_2: false
1414
ubtu22cis_rule_5_4_3_2: false
1515

1616
##############################################################################
17+
# Ubuntu Noble CIS Hardening Configuration
18+
19+
# Disable shell timeout for inactivity which can be disruptive to
20+
# development work.
21+
ubtu24cis_rule_5_4_3_2: false
22+
23+
##############################################################################

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ stackhpc_repo_ubuntu_jammy_security_version: "{{ stackhpc_pulp_repo_ubuntu_jammy
3030
stackhpc_repo_ubuntu_jammy_cve_2024_6387_version: ""
3131
stackhpc_repo_ubuntu_cloud_archive_version: "{{ stackhpc_pulp_repo_ubuntu_cloud_archive_version }}"
3232
stackhpc_repo_docker_ce_ubuntu_jammy_version: "{{ stackhpc_pulp_repo_docker_ce_ubuntu_jammy_version }}"
33+
stackhpc_repo_ubuntu_noble_version: "{{ stackhpc_pulp_repo_ubuntu_noble_version }}"
34+
stackhpc_repo_ubuntu_noble_security_version: "{{ stackhpc_pulp_repo_ubuntu_noble_security_version }}"
35+
stackhpc_repo_docker_ce_ubuntu_noble_version: "{{ stackhpc_pulp_repo_docker_ce_ubuntu_noble_version }}"
3336
stackhpc_repo_ceph_reef_debian_version: "{{ stackhpc_pulp_repo_ceph_reef_debian_version }}"
3437
stackhpc_repo_centos_stream_9_nfv_openvswitch_version: "{{ stackhpc_pulp_repo_centos_stream_9_nfv_openvswitch_version }}"
3538
stackhpc_repo_centos_stream_9_openstack_caracal_version: "{{ stackhpc_pulp_repo_centos_stream_9_openstack_caracal_version }}"

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ stackhpc_repo_ubuntu_jammy_security_version: "{{ stackhpc_pulp_repo_ubuntu_jammy
5656
stackhpc_repo_ubuntu_jammy_cve_2024_6387_version: ""
5757
stackhpc_repo_ubuntu_cloud_archive_version: "{{ stackhpc_pulp_repo_ubuntu_cloud_archive_version }}"
5858
stackhpc_repo_docker_ce_ubuntu_jammy_version: "{{ stackhpc_pulp_repo_docker_ce_ubuntu_jammy_version }}"
59+
stackhpc_repo_ubuntu_noble_version: "{{ stackhpc_pulp_repo_ubuntu_noble_version }}"
60+
stackhpc_repo_ubuntu_noble_security_version: "{{ stackhpc_pulp_repo_ubuntu_noble_security_version }}"
61+
stackhpc_repo_docker_ce_ubuntu_noble_version: "{{ stackhpc_pulp_repo_docker_ce_ubuntu_noble_version }}"
5962
stackhpc_repo_ceph_reef_debian_version: "{{ stackhpc_pulp_repo_ceph_reef_debian_version }}"
6063
stackhpc_repo_centos_stream_9_nfv_openvswitch_version: "{{ stackhpc_pulp_repo_centos_stream_9_nfv_openvswitch_version }}"
6164
stackhpc_repo_centos_stream_9_openstack_caracal_version: "{{ stackhpc_pulp_repo_centos_stream_9_openstack_caracal_version }}"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
os_distribution: "{{ lookup('pipe', '. /etc/os-release && echo $ID') | trim }}"
5151

5252
# OS release. Valid options are "9" when os_distribution is "rocky", or
53-
# "jammy" when os_distribution is "ubuntu".
53+
# "jammy" and "noble" when os_distribution is "ubuntu".
5454
os_release: >-
5555
{{ (lookup('pipe', '. /etc/os-release && echo $VERSION_CODENAME') | trim) if os_distribution == 'ubuntu' else
5656
(lookup('pipe', '. /etc/os-release && echo $VERSION_ID') | trim | split('.') | first) if os_distribution == 'rocky' }}

0 commit comments

Comments
 (0)