Skip to content

Instantly share code, notes, and snippets.

@pduersteler
Created November 19, 2014 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pduersteler/537084fb6de49cd79df0 to your computer and use it in GitHub Desktop.
Save pduersteler/537084fb6de49cd79df0 to your computer and use it in GitHub Desktop.
# /srv/salt/zabbix/agent.sls
zabbix.agent:
pkg.installed:
- pkgs:
- zabbix-agent
service.running:
- name: zabbix-agent
- enable: True
- reload: True
- watch:
- pkg: zabbix-agent
- file: /etc/zabbix/zabbix_agentd.conf
/etc/zabbix/zabbix_agentd.conf:
file.managed:
- source: salt://zabbix/files/zabbix_agentd.conf
# /srv/salt/zabbix/init.sls
include:
- repos.dotdeb
$ sudo salt '*' state.highstate
----------
ID: zabbix.agent
Function: service.running
Name: zabbix_agentd
Result: False
Comment: The following requisites were not found:
watch:
pkg: zabbix-agent
$ sudo service zabbix-agent status
[ ok ] zabbix_agentd is running.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment