Ansible Role linuxfabrik.lfops.repo_monitoring_plugins¶
This role removes the former repository of the Linuxfabrik Monitoring Plugins at repo.linuxfabrik.ch/monitoring-plugins/ from a host. The Monitoring Plugins are served by the Linuxfabrik package repository, which the linuxfabrik.lfops.repo_linuxfabrik role deploys.
The role is deprecated and will be removed in a future LFOps release. The playbooks that deploy the Monitoring Plugins (monitoring_plugins, icinga2_agent, setup_basic, setup_icinga2_master) run it before repo_linuxfabrik, so hosts are cleaned up on their next run.
Available since LFOps 2.0.0.
How the Role Behaves¶
- The role removes every
linuxfabrik-monitoring-plugins*file from/etc/yum.repos.d(Red Hat family),/etc/zypp/repos.d(SUSE) or/etc/apt/sources.list.d(Debian and Ubuntu), which also covers the timestamped backups of the repository file and the files thattools/install-monitoring-pluginsof the Monitoring Plugins wrote. - On Debian and Ubuntu, it also removes
/etc/apt/keyrings/linuxfabrik.asc, which only the former repository file referenced. - The Linuxfabrik signing key stays in the rpm database, since the Linuxfabrik repository is signed with the same key.
- The run aborts as long as one of the former variables
repo_monitoring_plugins__basic_auth_login,repo_monitoring_plugins__mirror_urlorrepo_monitoring_plugins__testingis set. Userepo_linuxfabrik__basic_auth_login,repo_linuxfabrik__mirror_urlandrepo_linuxfabrik__testing_repo_enabledinstead. A mirror has to serve the Linuxfabrik repository below<mirror URL>/linuxfabrik/, see the README ofrepo_linuxfabrik.
Tags¶
repo_monitoring_plugins, repo_monitoring_plugins:remove
- Removes the former Monitoring Plugins repository.
- Triggers: none.