Skip to content

Commit

Permalink
Add tasks and vars for SLES (#158)
Browse files Browse the repository at this point in the history
* Add install tasks and vars for SLES
* Add changelog fragments file

fix #157
  • Loading branch information
dh-roland authored May 31, 2023
1 parent 5231621 commit 16acfe8
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
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
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: ''

0 comments on commit 16acfe8

Please sign in to comment.