Skip to content

Commit

Permalink
fix(zabbix agent): workaround module.run syntax change
Browse files Browse the repository at this point in the history
  • Loading branch information
hatifnatt committed Oct 12, 2020
1 parent c7dff99 commit b93b3b4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions zabbix/agent/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,16 @@ zabbix-agent:
zabbix-agent-restart:
module.wait:
# Deprecation warning about legacy "module.run" syntax still will be thrown if "use_superseded: [module.run]"
# is not enabled in Salt version < 3001. But formula won't break after upgrade to version >= 3001
{% if 'module.run' in salt['config.get']('use_superseded', [])
or grains['saltversioninfo'] >= [3001] %}
- service.restart:
- name: {{ zabbix.agent.service }}
{% else %}
- name: service.restart
- m_name: {{ zabbix.agent.service }}
{% endif %}
zabbix-agent-logdir:
file.directory:
Expand Down

0 comments on commit b93b3b4

Please sign in to comment.