Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/source/operations/ubuntu-noble.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ To sync host packages:
.. code-block:: console

kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/pulp-repo-sync.yml -e stackhpc_pulp_sync_ubuntu_jammy=true -e stackhpc_pulp_sync_ubuntu_noble=true
kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/pulp-repo-publish.yml
kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/pulp-repo-publish.yml -e stackhpc_pulp_sync_ubuntu_jammy=true -e stackhpc_pulp_sync_ubuntu_noble=true

Once the host package content has been tested in a test/staging environment, it
may be promoted to production:

.. code-block:: console

kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/pulp-repo-promote-production.yml
kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/pulp-repo-promote-production.yml -e stackhpc_pulp_sync_ubuntu_jammy=true -e stackhpc_pulp_sync_ubuntu_noble=true

To sync container images:

Expand Down
24 changes: 12 additions & 12 deletions etc/kayobe/ansible/maintenance/ubuntu-upgrade.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---

Check warning on line 1 in etc/kayobe/ansible/maintenance/ubuntu-upgrade.yml

View workflow job for this annotation

GitHub Actions / Ansible 2.17 lint with Python 3.10

syntax-check[missing-file]

Unable to retrieve file contents

Check warning on line 1 in etc/kayobe/ansible/maintenance/ubuntu-upgrade.yml

View workflow job for this annotation

GitHub Actions / Ansible 2.18 lint with Python 3.12

syntax-check[missing-file]

Unable to retrieve file contents
# To prevent Ansible role dependency errors, this playbook requires that environment variable
# ANSIBLE_ROLES_PATH is defined and includes '$KAYOBE_PATH/ansible/roles' on the Ansible control host.
# Where KAYOBE_PATH is the path to the source of kayobe that the environment uses.
Expand Down Expand Up @@ -54,18 +54,7 @@
become: true
when: file_status.stat.exists

# NOTE: We cannot use apt_repository here because definitions must exist within the standard repos.list
- name: Ensure Noble repo definitions exist in sources.list
ansible.builtin.blockinfile:
path: /etc/apt/sources.list
block: |
deb {{ stackhpc_repo_ubuntu_noble_url }} noble main restricted universe multiverse
deb {{ stackhpc_repo_ubuntu_noble_url }} noble-updates main restricted universe multiverse
deb {{ stackhpc_repo_ubuntu_noble_url }} noble-backports main restricted universe multiverse
deb {{ stackhpc_repo_ubuntu_noble_security_url }} noble-security main restricted universe multiverse
become: true

- name: Enusre /tmp is mounted with exec
- name: Ensure /tmp is mounted with exec
ansible.posix.mount:
path: /tmp
opts: exec
Expand All @@ -81,6 +70,17 @@
become: true
when: inventory_hostname in groups['ceph']

# NOTE: We cannot use apt_repository here because definitions must exist within the standard repos.list
- name: Ensure Noble repo definitions exist in sources.list
ansible.builtin.blockinfile:
path: /etc/apt/sources.list
block: |
deb {{ stackhpc_repo_ubuntu_noble_url }} noble main restricted universe multiverse
deb {{ stackhpc_repo_ubuntu_noble_url }} noble-updates main restricted universe multiverse
deb {{ stackhpc_repo_ubuntu_noble_url }} noble-backports main restricted universe multiverse
deb {{ stackhpc_repo_ubuntu_noble_security_url }} noble-security main restricted universe multiverse
become: true

- name: Upgrade hosts from Ubuntu Jammy 22.04 to Noble 24.04
hosts: overcloud:infra-vms:seed:seed-hypervisor
vars:
Expand Down
Loading