telekom-mms / ansible-collection-icinga

This collection offers an almost complete solution to set up your monitoring with Ansible and Icinga. From setting up the Icinga agent unto automating the deployment of the Icinga director, you can install the necessary tools from a single source.
6 stars 8 forks source link

[Bug] Iciniga Debian 11 Repo Key #89

Open Shizzlebix opened 1 month ago

Shizzlebix commented 1 month ago

Description

if using icinga with debian 11 the gpg key is no more valid. so you have to install icinga-archive-keyring

Reproduction steps

apt update with icinga enabled on debian 11

Current Behavior

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.icinga.com/debian icinga-bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CC116F55AA7F2382 W: Failed to fetch https://packages.icinga.com/debian/dists/icinga-bullseye/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CC116F55AA7F2382 W: Some index files failed to download. They have been ignored, or old ones used instead.

Expected Behavior

.

Additional information

No response

Shizzlebix commented 1 month ago

roles/icinga_agent/molecule/default/prepare.yml 35a36,44

- name: Add icinga-archive-keyring repo
  ansible.builtin.apt:
    name: icinga-archive-keyring
    state: present
    update_cache: true
  when:
    - ansible_facts['distribution'] == 'Debian'
    - ansible_facts['distribution_major_version'] == "11"

42,43c51 < - deb http://packages.icinga.com/debian icinga-bullseye main < - deb-src http://packages.icinga.com/debian icinga-bullseye main

    - deb [signed-by=/usr/share/keyrings/icinga-archive-keyring.gpg] https://packages.icinga.com/debian icinga-bullseye main

roles/icinga_plugins/molecule/default/prepare.yml 51a52,60

- name: Add icinga-archive-keyring repo
  ansible.builtin.apt:
    name: icinga-archive-keyring
    state: present
    update_cache: true
  when:
    - ansible_facts['distribution'] == 'Debian'
    - ansible_facts['distribution_major_version'] == "11"

58,59c67 < - deb http://packages.icinga.com/debian icinga-bullseye main < - deb-src http://packages.icinga.com/debian icinga-bullseye main

     - deb [signed-by=/usr/share/keyrings/icinga-archive-keyring.gpg] https://packages.icinga.com/debian icinga-bullseye main