Added time sync

This commit is contained in:
Actaeus Curabitur 2022-11-15 15:45:41 -06:00
parent c541738372
commit 2ee1214d7c
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,10 @@
server 0.us.pool.ntp.org iburst
server 1.us.pool.ntp.org iburst
server 2.us.pool.ntp.org iburst
server 3.us.pool.ntp.org iburst
driftfile /var/lib/chrony.drift
leapdectz right/UTC
makestep 1.0 3
rtconutc
rtcsync

View file

@ -0,0 +1,15 @@
chrony_pkg
pkg.installed:
- name: chrony
/etc/chrony.conf:
file.managed:
- source: salt://systems/core/time/chrony.conf
- user: root
- group: root
- mode: 644
chronyd:
service.running:
- enabled: true

View file

@ -27,6 +27,7 @@
- systems.core.mount
- systems.core.git
- systems.core.backup
- systems.core.time
{%- if pillar['roles'] is defined -%}
{%- if pillar['roles'] is not none -%}
{%- for role in pillar['roles'] %}