forked from debops-contrib/ansible-checkmk_agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Playbook (documentation) update, remove dependencies
Don't hard-depend on roles anymore (see debops/debops-playbooks#192). Include example playbook instead of inlining it (see debops/docs#145).
- Loading branch information
Showing
6 changed files
with
81 additions
and
65 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 was deleted.
Oops, something went wrong.
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,51 @@ | ||
--- | ||
|
||
- name: Manage Check_MK agent | ||
hosts: [ 'debops_service_checkmk_agent', 'debops_checkmk_agent' ] | ||
become: True | ||
|
||
roles: | ||
- role: debops.apt_preferences | ||
tags: [ 'depend::apt_preferences', 'depend::apt_preferences:checkmk_agent', | ||
'depend-of::checkmk_agent', 'type::dependency' ] | ||
apt_preferences__dependent_list: | ||
- package: 'check-mk' | ||
backports: [ 'jessie' ] | ||
reason: 'Package not available in stable Debian Jessie' | ||
by_role: 'debops.contrib-checkmk_agent' | ||
|
||
- role: debops.etc_services | ||
tags: [ 'depend::etc_services', 'depend::etc_services:checkmk_agent', | ||
'depend-of::checkmk_agent', 'type::dependency' ] | ||
etc_services__dependent_list: | ||
- name: 'check-mk-agent' | ||
port: '{{ checkmk_agent__port }}' | ||
comment: 'Check_MK agent (via xinetd)' | ||
when: (checkmk_agent|d() and 'xinetd' in checkmk_agent) | ||
|
||
- role: debops.ferm | ||
tags: [ 'depend::ferm', 'depend::ferm:checkmk_agent', | ||
'depend-of::checkmk_agent', 'type::dependency' ] | ||
ferm__dependent_rules: '{{ checkmk_agent__ferm_dependent_rules }}' | ||
when: (checkmk_agent|d() and 'xinetd' in checkmk_agent) | ||
|
||
- role: debops.mariadb | ||
tags: [ 'depend::mariadb', 'depend::mariadb:checkmk_agent', | ||
'depend-of::checkmk_agent', 'type::dependency' ] | ||
mariadb__users: | ||
- user: '{{ checkmk_agent__plugin_mysql_user }}' | ||
password: '{{ checkmk_agent__plugin_mysql_password }}' | ||
priv: '{{ checkmk_agent__plugin_mysql_priv }}' | ||
priv_default: False | ||
priv_aux: False | ||
append_privs: False | ||
owner: 'root' | ||
creds_path: '/etc/check_mk/mysql.cfg' | ||
when: (("mk_mysql" in checkmk_agent__plugin_list and | ||
checkmk_agent__plugin_mysql|d("automatic") == "automatic") or | ||
((checkmk_agent__plugin_autodetect|d(True) | bool) and | ||
"debops_mariadb_server" in hostvars[inventory_hostname]["group_names"]) | ||
) | ||
|
||
- role: debops-contrib.checkmk_agent | ||
tags: [ 'role::checkmk_agent' ] |
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