Newer
Older
hsh_checkmk_install_xinetd:
pkg.installed:
- name: xinetd
# TODO: This may be improved since the deb file is really small until now!
hsh_checkmk_fetch_package:
cmd.run:
- name: wget http://salt.it.hs-hannover.de/check-mk-agent_1.5.0p20-1_all.deb -O check_mk.deb; dpkg -i check_mk.deb
- user: root
- group: root
- cwd: /tmp
- require:
- pkg: hsh_checkmk_install_xinetd
hsh_checkmk_set_config:
file.managed:
- name: /etc/xinetd.d/check_mk
- source: salt://checkmk/debian/check_mk
- mode: 644
- user: root
- group: root
- require:
- cmd: hsh_checkmk_fetch_package
hsh_checkmk_reload_xinetd:
service.running:
- name: xinetd
- enable: True
- reload: True
- watch:
- cmd: hsh_checkmk_fetch_package