Skip to content
Snippets Groups Projects
init.sls 834 B
Newer Older
  • Learn to ignore specific revisions
  • hsh_checkmk_purge_xinetd:
      pkg.purged:
    
    root's avatar
    root committed
        - name: xinetd
    
    hsh_checkmk_fetch_package:
    
      file.managed:
        - name: /tmp/checkmk.deb
    
        - source: salt://checkmk/checkmk-files/check-mk-agent_2.0.0p12-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_purge_xinetd
    
          - file: hsh_checkmk_fetch_package
    
    root's avatar
    root committed
    
    
    hsh_checkmk_enable_socket:
      service.running:
        - name: check_mk.socket
        - enable: True
        - reload: True
    
    root's avatar
    root committed
        - require:
    
          - pkg: hsh_checkmk_install_package
    
    root's avatar
    root committed
    
    
    hsh_checkmk_enable_async_service:
    
    root's avatar
    root committed
      service.running:
    
        - name: check_mk-async.service
    
    root's avatar
    root committed
        - enable: True
        - reload: True
    
        - require:
          - pkg: hsh_checkmk_install_package