{"id":19701231,"url":"https://github.com/dockpack/base_nettime","last_synced_at":"2025-02-27T12:46:03.075Z","repository":{"id":42048236,"uuid":"227468377","full_name":"dockpack/base_nettime","owner":"dockpack","description":"⌚️ Synchronize time on the network with chronyd","archived":false,"fork":false,"pushed_at":"2024-02-28T19:50:17.000Z","size":52,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-10T10:57:54.836Z","etag":null,"topics":["ansible-role","centos7-cis","chronyd","hacktoberfest","ntp","ntp-client","rhel7-cis"],"latest_commit_sha":null,"homepage":"https://www.ntp.org/","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dockpack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-11T21:59:50.000Z","updated_at":"2024-12-11T14:19:53.000Z","dependencies_parsed_at":"2023-02-14T02:35:11.839Z","dependency_job_id":"6b51c35d-68c6-47af-9404-469402c7cc84","html_url":"https://github.com/dockpack/base_nettime","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockpack%2Fbase_nettime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockpack%2Fbase_nettime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockpack%2Fbase_nettime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockpack%2Fbase_nettime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dockpack","download_url":"https://codeload.github.com/dockpack/base_nettime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241014865,"owners_count":19894314,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible-role","centos7-cis","chronyd","hacktoberfest","ntp","ntp-client","rhel7-cis"],"created_at":"2024-11-11T21:08:16.998Z","updated_at":"2025-02-27T12:46:03.047Z","avatar_url":"https://github.com/dockpack.png","language":"Jinja","readme":"# Ansible Role: base_nettime\n\nInstalls [Chrony](https://chrony.tuxfamily.org/) for NTP time synchronization with servers and peers.\nUses keys for peer authentication, so you can see the NTP state of your subnet:\n\n```python\nName/IP Address            NP  NR  Span  Frequency  Freq Skew  Offset  Std Dev\n==============================================================================\n192.168.100.4               8   5  120m     +0.048      0.035   -166ms    35us\n192.168.100.5              57  34  521m     +0.009      0.000   -113ms  6299ns\n192.168.100.6              58  29  537m     -0.015      0.002    -58ms    49us\n192.168.100.10              9   5  138m     +0.046      0.016   -113ms    24us\n192.168.100.11             55  33  496m     +0.009      0.001   +567ms    15us\n192.168.100.12             10   8  154m     +0.057      0.023   -135ms    36us\n192.168.100.13              6   3   85m     +0.063      0.065   -233ms    37us\n192.168.100.14             10   6  154m     +0.047      0.024   +527ms    41us\n192.168.100.15              0   0     0     +0.000   2000.000     +0ns  4000ms\n192.168.100.16             56  33  502m     -0.018      0.003    -33ms    56us\n192.168.100.17             56  29  513m     -0.020      0.004   +398ms    82us\n192.168.100.18             10   9  154m     +0.065      0.032  +1066ms    57us\n192.168.100.19             48  28  474m     +0.002      0.001   +900ms    18us\n192.168.100.20              9   6  137m     +0.052      0.026   +741ms    42us\n```\n\n\n## Requirements/Cautions\nCentos 7+8 and/or Debian 10.\n\nGenerate a sha256 key if you want to sync peers and to be able to see if your peers are insync. \n\n```sh\nchronyc keygen \u003cnettime_keyid\u003e SHA256 256\"\n```\n\nStore the output as a var like this in a vault file:\n\n```yaml\nchrony_key: '1234 SHA256 HEX:DD4E59D2CAE16FFCEBF23D67201814A2FA63251E1B23A1AF3A99203121807C6C'\n```\n\n**NOTE**: firewalld or ufw will be installed if `manage_firewall` is true\n\n## Dependencies\n\nAnsible, no role dependencies, not python dependencies.\n\n## Role variables\n\n\n### unique integer to lookup key for peer authentication:\n`nettime_keyid: 1234`\n\n### NTP Pool region/tld.\n`ntp_zone: .nl`\nBest results are attained when using a local zone. NTP is served by a pool of\nservers. `ntp_zone` is used in defaults/main.yml only.\n\n[https://www.ntppool.org/zone/europe](https://www.ntppool.org/zone/europe)\n\n### NTP time servers that you want to subscribe to:\n`ntp_servers:`\n\n### NTP time peers that you want to sync:\n`ntp_peers:`\n\n### Allow access from these subnets:\n```\nnet_allow:\n  - '192.168.0.0/16'\n```\n### deny access from these subnets:\nnet_deny: []\n\n\n## Example playbook\n\n```yaml\n---\n- hosts: all\n  roles:\n    - role: base_nettime\n```\n\n## License\n\nMIT\n\n## Reference:\n  - [https://chrony.tuxfamily.org/](https://chrony.tuxfamily.org/)\n\n## Author information\n\nThis role was created by Bas Meijer\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockpack%2Fbase_nettime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdockpack%2Fbase_nettime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockpack%2Fbase_nettime/lists"}