Skip to content

Commit

Permalink
fix duplicate ids if zabbix-agent and zabbix-server are both enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Niels Abspoel committed Sep 30, 2016
1 parent 528a062 commit cdf5b80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions zabbix/agent/init.sls
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{% from "zabbix/map.jinja" import zabbix with context -%}
{{ salt['file.dirname'](zabbix.agent.logfile) }}:
zabbix-agent-logdir:
file.directory:
- name: {{ salt['file.dirname'](zabbix.agent.logfile) }}
- user: {{ zabbix.user }}
- group: {{ zabbix.group }}
- dirmode: 755
{{ salt['file.dirname'](zabbix.agent.pidfile) }}:
zabbix-agent-piddir:
file.directory:
- name: {{ salt['file.dirname'](zabbix.agent.pidfile) }}
- user: {{ zabbix.user }}
- group: {{ zabbix.group }}
- dirmode: 750
Expand Down
6 changes: 4 additions & 2 deletions zabbix/server/init.sls
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{% from "zabbix/map.jinja" import zabbix with context -%}
{% set settings = salt['pillar.get']('zabbix', {}) -%}
{{ salt['file.dirname'](zabbix.server.logfile) }}:
zabbis-server-logdir:
file.directory:
- name: {{ salt['file.dirname'](zabbix.server.logfile) }}
- user: {{ zabbix.user }}
- group: {{ zabbix.group }}
- dirmode: 755
{{ salt['file.dirname'](zabbix.server.pidfile) }}:
zabbix-server-piddir:
file.directory:
- name: {{ salt['file.dirname'](zabbix.server.pidfile) }}
- user: {{ zabbix.user }}
- group: {{ zabbix.group }}
- dirmode: 755
Expand Down

0 comments on commit cdf5b80

Please sign in to comment.