``chrony.config`` | ``chrony.config`` | ||||
----------------- | ----------------- | ||||
This state manages the file ``chrony.conf`` under ``/etc`` (template found in "chrony/files"). The configuration is populated by values in "chrony/map.jinja", which are based on the package's default values (for RedHat and Debian family distributions), and are overridden by values of the same name in pillar. | |||||
This state manages the file ``chrony.conf`` under ``/etc`` (template found in "chrony/files"). The configuration is populated by values in "chrony/map.jinja", which are based on the package's default values (for RedHat, Debian and Arch family distributions), and are overridden by values of the same name in pillar. |
'logchange 0.5', | 'logchange 0.5', | ||||
], | ], | ||||
}, | }, | ||||
'Arch': { | |||||
'package': 'chrony', | |||||
'service': 'chrony', | |||||
'config': '/etc/chrony.conf', | |||||
'config_src': 'salt://chrony/files/chrony_config', | |||||
'options': 'iburst', | |||||
'logdir': '/var/log/chrony', | |||||
'keyfile': '/etc/chrony.keys', | |||||
'driftfile': '/var/lib/chrony/drift', | |||||
'otherparams': [ | |||||
'rtconutc', | |||||
'rtcsync', | |||||
], | |||||
} | |||||
}, | }, | ||||
grain='os_family', | grain='os_family', | ||||
merge=salt['pillar.get']('chrony:config')) | merge=salt['pillar.get']('chrony:config')) |