Skip to content
Snippets Groups Projects
Commit eafc0f99 authored by Jan Philipp Timme's avatar Jan Philipp Timme
Browse files

Migrate to systemd socket+service

parent 49c6cf9e
No related branches found
No related tags found
No related merge requests found
service check_mk
{
type = UNLISTED
port = 6556
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/bin/check_mk_agent
only_from = 141.71.3.61 141.71.3.159
disable = no
}
hsh_checkmk_install_xinetd:
pkg.installed:
hsh_checkmk_purge_xinetd:
pkg.purged:
- name: xinetd
hsh_checkmk_fetch_package:
......@@ -17,23 +17,21 @@ hsh_checkmk_install_package:
- group: root
- cwd: /tmp
- require:
- pkg: hsh_checkmk_install_xinetd
- pkg: hsh_checkmk_purge_xinetd
- file: hsh_checkmk_fetch_package
hsh_checkmk_set_config:
file.managed:
- name: /etc/xinetd.d/check_mk
- source: salt://checkmk/debian/check_mk.xinetd
- mode: 644
- user: root
- group: root
hsh_checkmk_enable_socket:
service.running:
- name: check_mk.socket
- enable: True
- reload: True
- require:
- cmd: hsh_checkmk_install_package
- pkg: hsh_checkmk_install_package
hsh_checkmk_reload_xinetd:
hsh_checkmk_enable_async_service:
service.running:
- name: xinetd
- name: check_mk-async.service
- enable: True
- reload: True
- watch:
- file: hsh_checkmk_set_config
- require:
- pkg: hsh_checkmk_install_package
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment