Skip to content
Snippets Groups Projects
init.sls 492 B
Newer Older
  • Learn to ignore specific revisions
  • {% from "hshbase/map.jinja" import hshbase with context %}
    
    
    {% if (grains['os'] == 'Debian' and grains['osmajorrelease'] >= 10) or grains['os'] == 'Ubuntu' and grains['osmajorrelease'] >= 18 %}
    
    ntp:
      pkg.purged
    
    /etc/ntp.conf:
      file.absent:
        - require:
          - pkg: ntp
    
    hsh_ntp_service_not_running:
      service.disabled:
        - name: ntp
        - require:
          - file: /etc/ntp.conf
          - pkg: ntp
    
    
    hsh_server_timezone:
      timezone.system:
        - name: {{ hshbase.time.zone }}