Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Roles tasks and vars SLES #158

Merged
merged 2 commits into from
May 31, 2023
Merged
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
3 changes: 3 additions & 0 deletions changelogs/fragments/feature_add_suse_installation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
major_changes:
- Add Installation on Suse Systems
16 changes: 16 additions & 0 deletions roles/icinga2/tasks/install_on_Suse.yml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a blank line between the tasks, it looks a bit cleaner and supports the readability.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional can you please use the Ansible FQCN notation for the zypper modules. https://docs.ansible.com/ansible/latest/collections/community/general/zypper_module.html

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
- name: Zypper - install package icinga2
community.general.zypper:
name: icinga2
state: present

- name: Zypper - install package icinga2-selinux
community.general.zypper:
name: icinga2-selinux
state: present
when: ansible_selinux is defined and ansible_selinux.status == "enabled"

- name: Zypper - install dep
community.general.zypper:
name: libboost_regex1_66_0
state: present
15 changes: 15 additions & 0 deletions roles/icinga2/vars/Suse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
icinga2_user: icinga
icinga2_group: icinga
icinga2_config_path: /etc/icinga2
icinga2_log_path: /var/log/icinga2
icinga2_ca_path: /var/lib/icinga2/ca
icinga2_cert_path: /var/lib/icinga2/certs
icinga2_fragments_path: /var/tmp/icinga
icinga2_default_constants:
PluginDir: /usr/lib/nagios/plugins/
ManubulonPluginDir: /usr/lib/nagios/plugins/
PluginContribDir: /usr/lib/nagios/plugins/
NodeName: "{{ ansible_fqdn }}"
ZoneName: NodeName
TicketSalt: ''