{"id":20744015,"url":"https://github.com/petersonwsantos/puppet-ntp","last_synced_at":"2025-07-06T10:03:53.087Z","repository":{"id":57664463,"uuid":"97740180","full_name":"petersonwsantos/puppet-ntp","owner":"petersonwsantos","description":"PUPPET - Puppet module for NTP ","archived":false,"fork":false,"pushed_at":"2017-09-07T23:23:37.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T10:03:51.546Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/petersonwsantos.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-19T16:48:03.000Z","updated_at":"2017-09-04T13:21:48.000Z","dependencies_parsed_at":"2022-09-10T16:11:04.253Z","dependency_job_id":null,"html_url":"https://github.com/petersonwsantos/puppet-ntp","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/petersonwsantos/puppet-ntp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petersonwsantos%2Fpuppet-ntp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petersonwsantos%2Fpuppet-ntp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petersonwsantos%2Fpuppet-ntp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petersonwsantos%2Fpuppet-ntp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petersonwsantos","download_url":"https://codeload.github.com/petersonwsantos/puppet-ntp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petersonwsantos%2Fpuppet-ntp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263882260,"owners_count":23524459,"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":[],"created_at":"2024-11-17T07:14:00.200Z","updated_at":"2025-07-06T10:03:53.069Z","avatar_url":"https://github.com/petersonwsantos.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![Build Status](https://travis-ci.org/petersonwsantos/puppet-ntp.svg?branch=master)](https://travis-ci.org/petersonwsantos/puppet-ntp)\n[![GitHub release](https://img.shields.io/github/release/petersonwsantos/puppet-ntp.svg)](https://github.com/petersonwsantos/windows_desktop_packages/releases)\n[![GitHub issues](https://img.shields.io/github/issues/petersonwsantos/puppet-ntp.svg)](https://github.com/petersonwsantos/windows_desktop_packages/issues)\n\n\nPuppet Module - NTP\n==============================\n\n\u003cimg src=\"https://www.pivotaltracker.com/images/v7/logos/logo_main.png\" width=\"120\"\u003e\n\n- **Project - Puppet Modules:** https://www.pivotaltracker.com/n/projects/2081967\n\n- **Story:** https://www.pivotaltracker.com/story/show/149242901\n\n\n## Description\nThe ntp module installs, configures, and manages the NTP service across a range of operating systems and distributions.\n\n## Usage\n\nAll parameters for the ntp module are contained within the main `::ntp` class, so for any function of the module, set the options you want. See the common usages below for examples.\n\n### Install and enable NTP\n\n```puppet\ninclude '::ntp'\n```\n\n### Change NTP servers\n\nList of Stratum One Time Servers\n\n[![List of Stratum One Time Servers](http://support.ntp.org/pub/TWiki/TWikiLogos/ntp_logo.png)](http://support.ntp.org/bin/view/Servers/StratumOneTimeServers)\n\n```puppet\nclass { '::ntp':\n  config_servers =\u003e [ 'ntp1.corp.com', 'ntp2.corp.com' ],\n}\n```\n\n### Restrict who can connect\n\n```puppet\nclass { '::ntp':\n  config_servers  =\u003e [ 'ntp1.corp.com', 'ntp2.corp.com' ],\n  config_restrict =\u003e ['127.0.0.1'],\n}\n```\n\n### Install a client that can't be queried\n\n```puppet\nclass { '::ntp':\n  config_servers   =\u003e ['ntp1.corp.com', 'ntp2.corp.com'],\n  config_restrict  =\u003e [\n    'default ignore',\n    '-6 default ignore',\n    '127.0.0.1',\n    '-6 ::1',\n    'ntp1.corp.com nomodify notrap nopeer noquery',\n    'ntp2.corp.com nomodify notrap nopeer noquery'\n  ],\n}\n```\n \n## Reference\n\n### Classes\n\n#### Public classes\n\n* ntp: Main class, includes all other classes.\n\n#### Private classes\n\n* ntp::install: Handles the packages.\n* ntp::config: Handles the configuration file.\n* ntp::service: Handles the service.\n\n\n### Hiera example\n\n```yaml\n---\nntp::package_ensure: present\nntp::package_manage: true\nntp::package_name: \n  - 'ntp'\nntp::service_name: ntpd\nntp::service_enable: true\nntp::service_ensure: running\nntp::service_manage: true\nntp::config_servers:\n  - '0.pool.ntp.org'\n  - '1.pool.ntp.org'\n  - '2.pool.ntp.org'\n  - '3.pool.ntp.org'\nntp::config_restrict:\n  - 'default nomodify notrap nopeer noquery kod limited'\n  - '-6 default kod nomodify notrap nopeer noquery'\n  - '127.0.0.1'\n  - '-6 ::1'\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetersonwsantos%2Fpuppet-ntp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetersonwsantos%2Fpuppet-ntp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetersonwsantos%2Fpuppet-ntp/lists"}