-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added suse support for following roles: - icinga2 - repos - icingaweb2 - icingadb - icingadb_redis * add general information about zypper requirements * add suse/sles to os matrix
- Loading branch information
1 parent
9dc0e5d
commit 8c3bf84
Showing
16 changed files
with
93 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- name: Zypper - install package icinga2-ido-mysql | ||
community.general.zypper: | ||
name: icinga2-ido-mysql | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- name: Zypper - install package icinga2-ido-pgsql | ||
community.general.zypper: | ||
name: icinga2-ido-pgsql | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- name: Suse - Install IcingaDB packages | ||
community.general.zypper: | ||
name: "{{ icingadb_packages }}" | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
- name: Suse - install icingadb packages | ||
community.general.zypper: | ||
name: "{{ icingadb_redis_packages }}" | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
- name: Suse - Install Icinga Web 2 packages | ||
community.general.zypper: | ||
name: "{{ icingaweb2_packages }}" | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
icingaweb2_httpd_user: wwwrun | ||
icingaweb2_fragments_path: /var/tmp/icingaweb | ||
icingaweb2_packages: ["icingaweb2", "icingacli"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
|
||
- name: Suse - add RPM key | ||
ansible.builtin.rpm_key: | ||
state: present | ||
key: "{{ icinga_repo_zypper_key }}" | ||
|
||
- name: Suse - add Icinga repository (stable) | ||
community.general.zypper_repository: | ||
name: icinga-stable-release | ||
description: ICINGA (stable release for openSUSE) | ||
state: "{{ 'present' if icinga_repo_stable|bool else 'absent' }}" | ||
repo: "{{ icinga_repo_zypper_stable_url }}" | ||
|
||
- name: Suse - add Icinga repository (testing) | ||
ansible.builtin.fail: | ||
msg: "Suse Testing repo is not available." | ||
when: icinga_repo_testing|bool == true | ||
|
||
- name: Suse - add Icinga repository (snapshot) | ||
community.general.zypper_repository: | ||
name: icinga-snapshot-builds | ||
description: ICINGA (snapshot builds for openSUSE) | ||
repo: "{{ icinga_repo_zypper_snapshot_url }}" | ||
state: "{{ 'present' if icinga_repo_snapshot|bool else 'absent' }}" |