Ansible role to manage chrony
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenDev Sysadmins bece846c05 OpenDev Migration Patch 5 hours ago
ci-scripts Initial commit 8 months ago
defaults Move default values to defaults 5 months ago
handlers Initial commit 8 months ago
meta Initial commit 8 months ago
tasks Force chrony restart on config change 3 weeks ago
templates Initial commit 8 months ago
tests Add zuul configuration 6 months ago
vars Move default values to defaults 5 months ago
zuul.d Add tripleo-standalone for coverage 5 months ago
.gitignore Fix gitignore 7 months ago
.gitreview OpenDev Migration Patch 5 hours ago
LICENSE Initial commit 8 months ago
README.rst Add zuul configuration 6 months ago
ansible-requirements.txt Initial commit 8 months ago
ansible.cfg Initial commit 8 months ago
install.yml Initial commit 8 months ago
requirements.txt Initial commit 8 months ago
setup.cfg Fix missing folders 6 months ago
setup.py Initial commit 8 months ago
test-requirements.txt Initial commit 8 months ago
tox.ini Merge "Remove setup.py check from pep8 job" 5 months ago

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 configuraiton 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