Skip to content

Commit

Permalink
added fix for wrong path in Debian Installation
Browse files Browse the repository at this point in the history
  • Loading branch information
xFuture603 committed Jan 10, 2022
1 parent 487034d commit 149b4e3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 8 additions & 1 deletion roles/icinga_agent/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@
icinga_agent_package: icinga2
icinga_agent_registration: false
icinga_agent_ca_host_icinga_port: 5665
icinga_agent_constants_conf: |
icinga_agent_constants_conf_rhel: |
const PluginDir = "/usr/lib64/nagios/plugins"
const PluginContribDir = "/usr/lib64/nagios/plugins"
const ManubulonPluginDir = "/usr/lib64/nagios/plugins"
const ZoneName = "{{ ansible_hostname }}"
const NodeName = "{{ ansible_hostname }}"
const TicketSalt = ""
icinga_agent_constants_conf_debian: |
const PluginDir = "/usr/lib/nagios/plugins"
const PluginContribDir = "/usr/lib/nagios/plugins"
const ManubulonPluginDir = "/usr/lib/nagios/plugins"
const ZoneName = "{{ ansible_hostname }}"
const NodeName = "{{ ansible_hostname }}"
const TicketSalt = ""
icinga_agent_api_conf: |
accept_config = true
accept_commands = true
Expand Down
6 changes: 5 additions & 1 deletion roles/icinga_agent/templates/configuration/constants.conf.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# {{ ansible_managed }}

{{ icinga_agent_constants_conf }}
{% if ansible_os_family == 'RedHat' %}
{{ icinga_agent_constants_conf_rhel }}
{% elif ansible_os_family == 'Debian' %}
{{ icinga_agent_constants_conf_debian }}
{% endif %}"

0 comments on commit 149b4e3

Please sign in to comment.