RETIRED, Ansible role to manage chrony
Go to file
jiangzhilin 5580549164 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I7112c11085d646e17fa2beb792a0aeed0d56e66b
2021-05-04 07:43:49 +00:00
ci-scripts Initial commit 2018-08-01 17:58:45 -06:00
defaults Move default values to defaults 2018-11-09 18:30:05 +00:00
handlers Initial commit 2018-08-01 17:58:45 -06:00
meta Fix requirements 2021-02-22 09:26:44 -07:00
tasks Use ansible_facts 2021-02-22 16:27:53 +00:00
templates Initial commit 2018-08-01 17:58:45 -06:00
tests Add zuul configuration 2018-09-29 16:02:32 +00:00
vars Move default values to defaults 2018-11-09 18:30:05 +00:00
zuul.d Add tripleo-standalone for coverage 2018-11-09 11:26:37 -07:00
.gitignore Fix gitignore 2018-09-18 16:02:27 -06:00
.gitreview OpenDev Migration Patch 2019-04-19 19:33:52 +00:00
LICENSE Initial commit 2018-08-01 17:58:45 -06:00
README.rst Fix the misspelling of "configuration" 2018-12-27 15:29:35 +08:00
ansible-requirements.txt Fix requirements 2021-02-22 09:26:44 -07:00
ansible.cfg Initial commit 2018-08-01 17:58:45 -06:00
install.yml Initial commit 2018-08-01 17:58:45 -06:00
requirements.txt Fix requirements 2021-02-22 09:26:44 -07:00
setup.cfg setup.cfg: Replace dashes with underscores 2021-05-04 07:43:49 +00:00
setup.py Initial commit 2018-08-01 17:58:45 -06:00
test-requirements.txt Fix requirements 2021-02-22 09:26:44 -07:00
tox.ini Replace deprecated UPPER_CONSTRAINTS_FILE variable 2020-11-09 14:47:08 +00:00

README.rst

chrony

A role to manage chrony

Role Variables

Variables used for chrony
Name Default Value Description
chrony_debug False Enable debug option in chrony
chrony_role_action all Ansible action when including the role. Should be one of: [allconfig|upgrade]
chrony_package_name chrony chrony system package name
chrony_service_name chronyd chrony system service name
chrony_manage_service True Flag used to specific if the ansible role should manage the service
chrony_manage_package True Flag used to specific if the ansible role should manage the package
chrony_service_state started Default service state to configure (started|stopped)
chrony_config_file_location /etc/chrony.conf Chrony configuration file location.
chrony_driftfile_path /var/lib/chrony/drift Chrony drift file location
chrony_logdir_path /var/log/chrony Chrony log directory location
chrony_ntp_servers [] List of NTP servers. This can be a list of hashes for advanced configuration. If using the hash format, a server_name and server_settings key should be populated with the appropriate data. If this is a list of hostnames, the chrony_global_server_settings will be appended to the configuration.
chrony_global_server_settings <none> Default setting to apply to the servers configuration
chrony_ntp_pools [] List of NTP pools. This can be a list of hashes for advanced configuration. If using the hash format, a pool_name and pool_settings key should be populated with the appropriate data. If this is a list of hostnames, the chrony_global_pool_settings will be appended to the configuration.
chrony_global_pool_settings <none> Default setting to apply to the pools configuration
chrony_ntp_peers [] List of NTP peers. This can be a list of hashes for advanced configuration. If using the hash format, a peer_name and peer_settings key should be populated with the appropriate data. If this is a list of hostnames, the chrony_global_peer_settings will be appended to the configuration.
chrony_global_peer_settings <none> Default setting to apply to the peers configuration
chrony_bind_addresses ['127.0.0.1', '::1'] List of addresses to bind to to listen for command packets
chrony_acl_rules [] List of specific allow/deny commands for the configuration file
chrony_rtc_settings ['rtcsync'] List of specific real time lock settings
chrony_makestep 1.0 3 The chrony makestep configuration
chrony_extra_options [] A list of extra option strings that is added to the end of the configuration file. This list is joined with new lines.

Requirements

  • ansible >= 2.4
  • python >= 2.6

Dependencies

None

Example Playbooks

- hosts: localhost
  become: true
  roles:
    - chrony

License

Apache 2.0