39 строки
940 B
Plaintext
39 строки
940 B
Plaintext
{% from "smokeping/map.jinja" import smokeping with context %}
|
|
|
|
include:
|
|
- smokeping
|
|
|
|
smokeping_cfg:
|
|
file.managed:
|
|
- name: /etc/smokeping/config
|
|
- source: salt://smokeping/files/config
|
|
- template: jinja
|
|
- user: root
|
|
- watch_in:
|
|
- service: smokeping
|
|
- require:
|
|
- pkg: smokeping
|
|
|
|
smokeping_fcgi:
|
|
file.managed:
|
|
- name: /usr/share/smokeping/www/smokeping.fcgi
|
|
- source: salt://smokeping/files/smokeping.fcgi
|
|
- template: jinja
|
|
- user: root
|
|
- mode: 755
|
|
- watch_in:
|
|
- service: smokeping
|
|
- require:
|
|
- pkg: smokeping
|
|
|
|
{% for config in ['General', 'Database', 'Alerts', 'Targets', 'Presentation', 'Probes', 'pathnames'] %}
|
|
smokeping_config_d_{{config}}:
|
|
file.managed:
|
|
- name: /etc/smokeping/config.d/{{ config }}
|
|
- source: salt://smokeping/files/{{ config }}
|
|
- template: jinja
|
|
- user: root
|
|
- watch_in:
|
|
- service: smokeping
|
|
{% endfor %}
|