Skip to content
Snippets Groups Projects
init.sls 878 B
Newer Older
  • Learn to ignore specific revisions
  • root's avatar
    root committed
    hsh_checkmk_install_xinetd:
      pkg.installed:
        - name: xinetd
    
    hsh_checkmk_fetch_package:
    
      file.managed:
        - name: /tmp/checkmk.deb
    
        - source: salt://checkmk/checkmk-files/check-mk-agent_1.6.0p10-1_all.deb
    
        - group: root
    
        - mode: 755
    
    hsh_checkmk_install_package:
    
    root's avatar
    root committed
      cmd.run:
    
        - name: dpkg -i /tmp/checkmk.deb
    
    root's avatar
    root committed
        - user: root
        - group: root
        - cwd: /tmp
        - require:
          - pkg: hsh_checkmk_install_xinetd
    
          - file: hsh_checkmk_fetch_package
    
    root's avatar
    root committed
    
    hsh_checkmk_set_config:
      file.managed:
        - name: /etc/xinetd.d/check_mk
    
    Jan Philipp Timme's avatar
    Jan Philipp Timme committed
        - source: salt://checkmk/debian/check_mk.xinetd
    
    root's avatar
    root committed
        - mode: 644
        - user: root
        - group: root
        - require:
    
          - cmd: hsh_checkmk_install_package
    
    root's avatar
    root committed
    
    hsh_checkmk_reload_xinetd:
      service.running:
        - name: xinetd
        - enable: True
        - reload: True
        - watch:
    
          - file: hsh_checkmk_set_config