Icinga / ansible-playbooks

Ansible Playbook for Icinga 2
GNU General Public License v2.0
225 stars 122 forks source link

change Apt repos (#88) #89

Closed dmke closed 6 years ago

dmke commented 6 years ago

packages.icinga.org has an invalid TLS certificate, so apt-get update fails loudly. This changes the repo URL to packages.icinga.com (which has a valid certificate, and to which packages.icinga.org also redirects).

This fixes #88.

dmke commented 6 years ago

I haven't touched the RPM URLs, mainly because I don't have a Redhat-based system at hand. But I suspect yum will also stumble over the invalid cert, no?

dmke commented 6 years ago

I also am not sure, whether {{ item.repo|replace("packages.icinga.com", "packages.icinga.org") }} is the best way to reconstruct the old repos (for removal).

It could easily be done like this as well:

- name: Remove old Apt repos
  file:
    path: "/etc/apt/sources.list.d/packages_icinga_org_{{ ansible_distribution|lower }}.list"
    state: absent

or by introducing two new variables (basically a copy of the former icinga2_deb_repos) and iterating over them. Since this is a matter of taste, I leave this up to you :-)

maccadia commented 6 years ago

Someone is reporting the same issue with yum repo ; see : Icinga/icinga-packaging#108