Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Proxmox 8 Support #21

Open
zchoate opened this issue Jul 20, 2023 · 2 comments
Open

Proxmox 8 Support #21

zchoate opened this issue Jul 20, 2023 · 2 comments

Comments

@zchoate
Copy link

zchoate commented Jul 20, 2023

First, thanks for putting this together as well your infra repo! It's a great reference when IaCing my home lab.

I just tried installing this role on a new Proxmox 8 box. It looks like Proxmox 8 includes a new source for ceph which also needs to be updated. The add-no-subscription repo task fails because the ceph.list (newly added in 8 maybe?) is pointed at the enterprise repo. I manually updated this to deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription and the task ran successfully adding the pve-no-subscription repo as expected.

The nag message tweak appears to be broken.

If you like I can try to put together the changes while trying to maintain backwards compatibility and submit a PR.

@zchoate
Copy link
Author

zchoate commented Jul 20, 2023

Disregard the nag message comment...helps if I clear my cache ;-). The tweak still works for Proxmox 8.

richid added a commit to richid/ansible-role-proxmox-nag-removal that referenced this issue Aug 30, 2023
This adds a task and related variable to remove the Ceph Apt repository
file at /etc/apt/sources.list.d/ceph.list. I believe this only exists on
PVE 8/Debian 12 but currently causes the add-no-subscription task to
fail as mentioned in
ironicbadger#21.

Note: I've made no attempt to support the no subscription version of the
Ceph repository as I expect that most people interested in this are not
using Ceph anyway.

Fixes: ironicbadger#21
@BeyondEvil
Copy link

Here's what I do to handle the new ceph-quincy package:

  tasks:
    - name: Set the "no-subscription" repositories
      ansible.builtin.apt_repository:
        filename: "{{ item.filename }}"
        repo: "deb http://download.proxmox.com/debian/{{ item.repo }} bookworm {{ item.package }}"
        state: present
        update_cache: false
      loop:
        - {filename: pve-no-subscription, repo: pve, package: pve-no-subscription}
        - {filename: ceph, repo: ceph-quincy, package: no-subscription}
      notify: Update APT cache

    - name: Remove the "enterprise" repositories
      ansible.builtin.apt_repository:
        filename: "{{ item.filename }}"
        repo: "deb https://enterprise.proxmox.com/debian/{{ item.repo }} bookworm {{ item.package }}"
        state: absent
        update_cache: false
      loop:
        - {filename: pve-enterprise, repo: pve, package: pve-enterprise}
        - {filename: ceph, repo: ceph-quincy, package: enterprise}
      notify: Update APT cache

  handlers:
    - name: Update APT cache
      ansible.builtin.apt:
        update_cache: true

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants