salt-common/sls/nagios/graphios.sls
Antsiferov Grigory e83a6f82ca Add graphios.initd
2018-02-14 23:27:56 +03:00

64 lines
1.3 KiB
Plaintext

include:
- nagios.server
/usr/local/lib/graphios/:
file.directory:
- create: True
- user: root
- group: root
- mode : 755
/usr/local/lib/graphios/graphios.py:
file.managed:
- source: salt://nagios/files/graphios.py
- user: root
- group: root
- mode: 755
- require:
- file: /usr/local/lib/graphios/
/usr/local/lib/graphios/graphios_backends.py:
file.managed:
- source: salt://nagios/files/graphios_backends.py
- user: root
- group: root
- mode: 644
- require:
- file: /usr/local/lib/graphios/
/etc/graphios/:
file.directory:
- create: True
- user: root
- group: root
- mode : 755
/etc/graphios/graphios.cfg:
file.managed:
- source: salt://nagios/files/graphios.cfg.tpl
- template: jinja
- user: root
- group: nagios
- mode: 755
- require:
- file: /etc/graphios/
- user: nagios
/etc/init.d/graphios:
file.managed:
- source: salt://nagios/files/graphios.initd
- user: root
- group: root
- mode: 755
graphios:
service.running:
- enable: True
- watch:
- user: nagios
- file: /usr/local/lib/graphios/graphios.py
- file: /usr/local/lib/graphios/graphios_backends.py
- file: /etc/graphios/
- file: /etc/graphios/graphios.cfg
- file: /etc/init.d/graphios