diff --git a/roles/core/init.sls b/roles/core/init.sls index 40ffb6c..6b3f8fa 100644 --- a/roles/core/init.sls +++ b/roles/core/init.sls @@ -1,26 +1,27 @@ # ------------------------------------------------------------- # Salt — Core units # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Project: Nasqueron # License: Trivial work, not eligible to copyright # ------------------------------------------------------------- include: - .rc - .certificates - .hostname - .login - .network - .memory - .monitoring - .motd + - .ntp - .src - .ports - .rsyslog - .salt - .sshd - .sudo - .sysctl - .timezone - .userland-software - .users diff --git a/roles/core/init.sls b/roles/core/ntp/init.sls similarity index 52% copy from roles/core/init.sls copy to roles/core/ntp/init.sls index 40ffb6c..8e70ed8 100644 --- a/roles/core/init.sls +++ b/roles/core/ntp/init.sls @@ -1,26 +1,16 @@ # ------------------------------------------------------------- -# Salt — Core units +# Salt — NTP # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Project: Nasqueron # License: Trivial work, not eligible to copyright # ------------------------------------------------------------- -include: - - .rc - - .certificates - - .hostname - - .login - - .network - - .memory - - .monitoring - - .motd - - .src - - .ports - - .rsyslog - - .salt - - .sshd - - .sudo - - .sysctl - - .timezone - - .userland-software - - .users +{% if grains['os_family'] == 'RedHat' %} +chrony: + pkg.installed + +chrony_service: + service.running: + - name: chronyd + - enable: true +{% endif %}