saltstack-formulas / icinga2-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
19 stars 28 forks source link

icinga2.nrpe-server #1

Closed Reiner030 closed 9 years ago

Reiner030 commented 9 years ago

Hi,

have you ever tested the nrpe-server part "standalone" ? ;)

    Data failed to compile:
----------
    Rendering SLS "base:icinga2.nrpe-server" failed: Jinja variable 'dict object' has no attribute 'defaults'; line 14

---
[...]
      - file: /etc/default/nagios-nrpe-server

/etc/default/nagios-nrpe-server:
  file.managed:
    - contents: |
{%- for key, value in icinga2.nrpe.defaults.iteritems() %}    <======================
        {{ key }}={{ value }}
{%- endfor %}

/etc/nagios/nrpe_local.cfg:
  file.managed:
[...]

---

and the repository is only included into the main init.sls... => should be moved to e.g. repository.sls and then with

include:
  - .repository

added to the monitoring client + server each.

Bests