Skip to content

Commit 25de37e

Browse files
authored
Merge pull request #145 from ghormoon/fix-include-dirname
When creating directory that is included from agent config, strip filename or glob at the end
2 parents 9778cd3 + b36c1a7 commit 25de37e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zabbix/agent/init.sls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ zabbix-agent-piddir:
5656
{% for include in settings.get('includes', defaults.get('includes', [])) %}
5757
{{ include }}:
5858
file.directory:
59+
- name: {{ salt['file.dirname'](include) }}
5960
- user: {{ zabbix.user }}
6061
- group: {{ zabbix.group }}
6162
- dirmode: 750

0 commit comments

Comments
 (0)