paulbsd-salt/states/zabbix/agent/scripts.sls

16 lines
399 B
Plaintext
Raw Normal View History

2020-11-04 23:05:21 +01:00
---
{%- from "zabbix/map.jinja" import zabbix with context %}
zabbix_script_dir:
file.directory:
- name: /etc/zabbix/scripts
{%- for key, value in zabbix.agent.scripts.items() %}
zabbix_script_{{ key }}:
file.managed:
- name: /etc/zabbix/scripts/{{ value.name }}
- source: salt://zabbix/scripts/{{ value.name }}
2020-11-30 22:53:19 +01:00
- user: zabbix
2020-11-04 23:05:21 +01:00
- group: zabbix
- mode: 0755
{%- endfor %}