{ "uri": "/v3/modules/puppetlabs-ntp", "slug": "puppetlabs-ntp", "name": "ntp", "downloads": 68893763, "created_at": "2011-06-16 23:31:17 -0700", "updated_at": "2019-05-15 02:04:17 -0700", "deprecated_at": null, "deprecated_for": null, "superseded_by": null, "supported": true, "endorsement": "supported", "module_group": "base", "owner": { "uri": "/v3/users/puppetlabs", "slug": "puppetlabs", "username": "puppetlabs", "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec" }, "current_release": { "uri": "/v3/releases/puppetlabs-ntp-8.0.0", "slug": "puppetlabs-ntp-8.0.0", "module": { "uri": "/v3/modules/puppetlabs-ntp", "slug": "puppetlabs-ntp", "name": "ntp", "deprecated_at": null, "owner": { "uri": "/v3/users/puppetlabs", "slug": "puppetlabs", "username": "puppetlabs", "gravatar_id": "fdd009b7c1ec96e088b389f773e87aec" } }, "version": "8.0.0", "metadata": { "name": "puppetlabs-ntp", "version": "8.0.0", "author": "Puppet Inc", "summary": "Installs, configures, and manages the NTP service.", "license": "Apache-2.0", "source": "https://github.com/puppetlabs/puppetlabs-ntp", "project_page": "https://github.com/puppetlabs/puppetlabs-ntp", "issues_url": "https://tickets.puppetlabs.com/browse/MODULES", "dependencies": [ { "name": "puppetlabs/stdlib", "version_requirement": ">= 4.13.1 < 7.0.0" } ], "data_provider": null, "operatingsystem_support": [ { "operatingsystem": "RedHat", "operatingsystemrelease": [ "5", "6", "7" ] }, { "operatingsystem": "CentOS", "operatingsystemrelease": [ "5", "6", "7" ] }, { "operatingsystem": "OracleLinux", "operatingsystemrelease": [ "5", "6", "7" ] }, { "operatingsystem": "Scientific", "operatingsystemrelease": [ "6", "7" ] }, { "operatingsystem": "SLES", "operatingsystemrelease": [ "11 SP1", "12", "15" ] }, { "operatingsystem": "Debian", "operatingsystemrelease": [ "8", "9" ] }, { "operatingsystem": "Ubuntu", "operatingsystemrelease": [ "14.04", "16.04", "18.04" ] }, { "operatingsystem": "Solaris", "operatingsystemrelease": [ "11" ] }, { "operatingsystem": "AIX", "operatingsystemrelease": [ "5.3", "6.1", "7.1" ] } ], "requirements": [ { "name": "puppet", "version_requirement": ">= 5.5.10 < 7.0.0" } ], "description": "NTP Module for Debian, Ubuntu, CentOS, RHEL, OEL, Fedora, FreeBSD, ArchLinux, Amazon Linux and Gentoo.", "template-url": "https://github.com/puppetlabs/pdk-templates#master", "template-ref": "heads/master-0-gf778803", "pdk-version": "1.10.0" }, "tags": [ "ntp", "time", "archlinux", "gentoo", "aix", "debian", "ubuntu", "rhel", "centos", "ntpd", "ntpserver" ], "supported": false, "pdk": true, "validation_score": 92, "file_uri": "/v3/files/puppetlabs-ntp-8.0.0.tar.gz", "file_size": 44558, "file_md5": "0a42e0582370c1bb5e3d3015ccfd9604", "file_sha256": "09aafa2f5ab009d8429672b5f2ae649b939a3041100c8da294bdf975bcfcaca6", "downloads": 26331, "reference": "# Reference\n\n\n## Table of Contents\n\n**Classes**\n\n_Public Classes_\n\n* [`ntp`](#ntp): ntp Main class, includes all other classes.\n\n_Private Classes_\n\n* `ntp::config`: This class handles the configuration file.\n* `ntp::install`: This class handles ntp packages.\n* `ntp::service`: This class handles the ntp service.\n\n## Classes\n\n### ntp\n\nntp\n\nMain class, includes all other classes.\n\n#### Parameters\n\nThe following parameters are available in the `ntp` class.\n\n##### `authprov`\n\nData type: `Optional[String]`\n\nEnables compatibility with W32Time in some versions of NTPd (such as Novell DSfW). Default value: undef.\n\n##### `broadcastclient`\n\nData type: `Boolean`\n\nEnables reception of broadcast server messages to any local interface. Default value: false.\n\n##### `burst`\n\nData type: `Boolean`\n\nWhen the server is reachable, send a burst of eight packets instead of the usual one. Default value: false.\n\n##### `config`\n\nData type: `Stdlib::Absolutepath`\n\nSpecifies a file for NTP's configuration info. Default value: '/etc/ntp.conf' (or '/etc/inet/ntp.conf' on Solaris).\n\n##### `config_dir`\n\nData type: `Optional[Stdlib::Absolutepath]`\n\nSpecifies a directory for the NTP configuration files. Default value: undef.\n\n##### `config_epp`\n\nData type: `Optional[String]`\n\nSpecifies an absolute or relative file path to an EPP template for the config file.\nExample value: 'ntp/ntp.conf.epp'. A validation error is thrown if both this **and** the `config_template` parameter are specified.\n\n##### `config_file_mode`\n\nData type: `String`\n\nSpecifies a file mode for the ntp configuration file. Default value: '0664'.\n\n##### `config_template`\n\nData type: `Optional[String]`\n\nSpecifies an absolute or relative file path to an ERB template for the config file.\nExample value: 'ntp/ntp.conf.erb'. A validation error is thrown if both this **and** the `config_epp` parameter are specified.\n\n##### `disable_auth`\n\nData type: `Boolean`\n\nDisables cryptographic authentication for broadcast client, multicast client, and symmetric passive associations.\n\n##### `disable_dhclient`\n\nData type: `Boolean`\n\nDisables `ntp-servers` in `dhclient.conf` to prevent Dhclient from managing the NTP configuration.\n\n##### `disable_kernel`\n\nData type: `Boolean`\n\nDisables kernel time discipline.\n\n##### `disable_monitor`\n\nData type: `Boolean`\n\nDisables the monitoring facility in NTP. Default value: true.\n\n##### `driftfile`\n\nData type: `Stdlib::Absolutepath`\n\nSpecifies an NTP driftfile. Default value: '/var/lib/ntp/drift' (except on AIX and Solaris).\n\n##### `enable_mode7`\n\nData type: `Boolean`\n\nEnables processing of NTP mode 7 implementation-specific requests which are used by the deprecated ntpdc program. Default value: false.\n\n##### `fudge`\n\nData type: `Optional[Array[String]]`\n\nProvides additional information for individual clock drivers. Default value: [ ]\n\n##### `iburst_enable`\n\nData type: `Boolean`\n\nSpecifies whether to enable the iburst option for every NTP peer. Default value: false (true on AIX and Debian).\n\n##### `interfaces`\n\nData type: `Array[String]`\n\nSpecifies one or more network interfaces for NTP to listen on. Default value: [ ].\n\n##### `interfaces_ignore`\n\nData type: `Array[String]`\n\nSpecifies one or more ignore pattern for the NTP listener configuration (for example: all, wildcard, ipv6). Default value: [ ].\n\n##### `keys`\n\nData type: `Array[String]`\n\nDistributes keys to keys file. Default value: [ ].\n\n##### `keys_controlkey`\n\nData type: `Optional[Ntp::Key_id]`\n\nSpecifies the key identifier to use with the ntpq utility. Value in the range of 1 to 65,534 inclusive. Default value: ' '.\n\n##### `keys_enable`\n\nData type: `Boolean`\n\nWhether to enable key-based authentication. Default value: false.\n\n##### `keys_file`\n\nData type: `Stdlib::Absolutepath`\n\nSpecifies the complete path and location of the MD5 key file containing the keys and key identifiers used by ntpd, ntpq and ntpdc\nwhen operating with symmetric key cryptography. Default value: `/etc/ntp.keys` (on RedHat and Amazon, `/etc/ntp/keys`).\n\n##### `keys_requestkey`\n\nData type: `Optional[Ntp::Key_id]`\n\nSpecifies the key identifier to use with the ntpdc utility program. Value in the range of 1 to 65,534. Default value: ' '.\n\n##### `keys_trusted`\n\nData type: `Optional[Array[Ntp::Key_id]]`\n\nProvides one or more keys to be trusted by NTP. Default value: [ ].\n\n##### `leapfile`\n\nData type: `Optional[Stdlib::Absolutepath]`\n\nSpecifies a leap second file for NTP to use. Default value: ' '.\n\n##### `logfile`\n\nData type: `Optional[Stdlib::Absolutepath]`\n\nSpecifies a log file for NTP to use instead of syslog. Default value: ' '.\n\n##### `logconfig`\n\nData type: `Optional[String]`\n\nSpecifies the logconfig for NTP to use. Default value: ' '.\n\n##### `minpoll`\n\nData type: `Optional[Ntp::Poll_interval]`\n\nSets Puppet to non-standard minimal poll interval of upstream servers.\nValues: 3 to 16. Default: undef.\n\n##### `maxpoll`\n\nData type: `Optional[Ntp::Poll_interval]`\n\nSets use non-standard maximal poll interval of upstream servers.\nValues: 3 to 16. Default option: undef, except on FreeBSD (on FreeBSD, defaults to 9).\n\n##### `ntpsigndsocket`\n\nData type: `Optional[Stdlib::Absolutepath]`\n\nSets NTP to sign packets using the socket in the ntpsigndsocket path. Requires NTP to be configured to sign sockets.\nValue: Path to the socket directory; for example, for Samba: `usr/local/samba/var/lib/ntp_signd/`. Default value: undef.\n\n##### `package_ensure`\n\nData type: `String`\n\nWhether to install the NTP package, and what version to install. Values: 'present', 'latest', or a specific version number.\nDefault value: 'present'.\n\n##### `package_manage`\n\nData type: `Boolean`\n\nWhether to manage the NTP package. Default value: true.\n\n##### `package_name`\n\nData type: `Array[String]`\n\nSpecifies the NTP package to manage. Default value: ['ntp'] (except on AIX and Solaris).\n\n##### `panic`\n\nData type: `Optional[Integer[0]]`\n\nWhether NTP should \"panic\" in the event of a very large clock skew. Applies only if `tinker` option set to true or if your environment\nis in a virtual machine. Default value: 0 if environment is virtual, undef in all other cases.\n\n##### `peers`\n\nData type: `Array[String]`\n\nList of NTP servers with which to synchronise the local clock.\n\n##### `tos_orphan`\n\nData type: `Optional[Integer[1]]`\n\nEnables Orphan mode for peer group\nValue: Should be set to 2 more than the worst-case externally-reachable source's stratum.\n\n##### `pool`\n\nData type: `Optional[Array[String]]`\n\nList of NTP server pools with which to synchronise the local clock.\n\n##### `preferred_servers`\n\nData type: `Array[String]`\n\nSpecifies one or more preferred peers. Puppet appends 'prefer' to each matching item in the `servers` array.\nDefault value: [ ].\n\n##### `noselect_servers`\n\nData type: `Array[String]`\n\nSpecifies one or more peers to not sync with. Puppet appends 'noselect' to each matching item in the `servers` array.\nDefault value: [ ].\n\n##### `restrict`\n\nData type: `Array[String]`\n\nSpecifies one or more `restrict` options for the NTP configuration.\nPuppet prefixes each item with 'restrict', so you need to list only the content of the restriction.\nDefault value for most operating systems:\n '[default kod nomodify notrap nopeer noquery', '-6 default kod nomodify notrap nopeer noquery', '127.0.0.1', '-6 ::1']'.\nDefault value for AIX systems:\n '['default nomodify notrap nopeer noquery', '127.0.0.1',]'.\n\n##### `servers`\n\nData type: `Array[String]`\n\nSpecifies one or more servers to be used as NTP peers. Default value: varies by operating system.\n\n##### `service_enable`\n\nData type: `Boolean`\n\nWhether to enable the NTP service at boot. Default value: true.\n\n##### `service_ensure`\n\nData type: `Enum['running', 'stopped']`\n\nWhether the NTP service should be running. Default value: 'running'.\n\n##### `service_manage`\n\nData type: `Boolean`\n\nWhether to manage the NTP service. Default value: true.\n\n##### `service_name`\n\nData type: `String`\n\nThe NTP service to manage. Default value: varies by operating system.\n\n##### `service_provider`\n\nData type: `Optional[String]`\n\nWhich service provider to use for NTP. Default value: 'undef'.\n\n##### `slewalways`\n\nData type: `Optional[Enum['yes','no']]`\n\nxntpd setting to disable stepping behavior and always slew the clock to handle adjustments.\nOnly relevant for AIX. Default value: 'undef'. Allowed values: 'yes', 'no'\n\n##### `statistics`\n\nData type: `Optional[Array]`\n\nList of statistics to have NTP generate and keep. Default value: [ ].\n\n##### `statsdir`\n\nData type: `Optional[Stdlib::Absolutepath]`\n\nLocation of the NTP statistics directory on the managed system. Default value: '/var/log/ntpstats'.\n\n##### `step_tickers_file`\n\nData type: `Optional[Stdlib::Absolutepath]`\n\nLocation of the step tickers file on the managed system. Default value: varies by operating system.\n\n##### `step_tickers_epp`\n\nData type: `Optional[String]`\n\nLocation of the step tickers EPP template file. Default value: varies by operating system.\nValidation error is thrown if both this and the `step_tickers_template` parameters are specified.\n\n##### `step_tickers_template`\n\nData type: `Optional[String]`\n\nLocation of the step tickers ERB template file. Default value: varies by operating system.\nValidation error is thrown if both this and the `step_tickers_epp` parameter are specified.\n\n##### `stepout`\n\nData type: `Optional[Integer[0, 65535]]`\n\nValue for stepout if `tinker` value is true. Valid options: unsigned shortint digit. Default value: undef.\n\n##### `tos`\n\nData type: `Boolean`\n\nWhether to enable tos options. Default value: false.\n\n##### `tos_minclock`\n\nData type: `Optional[Integer[1]]`\n\nSpecifies the minclock tos option. Default value: 3.\n\n##### `tos_maxclock`\n\nData type: `Optional[Integer[1]]`\n\nSpecifies the maxclock tos option. Default value: 6.\n\n##### `tos_minsane`\n\nData type: `Optional[Integer[1]]`\n\nSpecifies the minsane tos option. Default value: 1.\n\n##### `tos_floor`\n\nData type: `Optional[Integer[1]]`\n\nSpecifies the floor tos option. Default value: 1.\n\n##### `tos_ceiling`\n\nData type: `Optional[Integer[1]]`\n\nSpecifies the ceiling tos option. Default value: 15.\n\n##### `tos_cohort`\n\nData type: `Variant[Boolean, Integer[0,1]]`\n\nSpecifies the cohort tos option. Valid options: 0 or 1. Default value: 0.\n\n##### `tinker`\n\nData type: `Optional[Boolean]`\n\nWhether to enable tinker options. Default value: false.\n\n##### `udlc`\n\nData type: `Boolean`\n\nSpecifies whether to configure NTP to use the undisciplined local clock as a time source. Default value: false.\n\n##### `udlc_stratum`\n\nData type: `Optional[Integer[1,15]]`\n\nSpecifies the stratum the server should operate at when using the undisciplined local clock as the time source.\nThis value should be set to no less than 10 if ntpd might be accessible outside your immediate, controlled network.\nDefault value: 10.am udlc\n\n", "tasks": [ ], "created_at": "2019-05-15 02:04:17 -0700", "updated_at": "2019-07-03 15:45:51 -0700", "deleted_at": null, "deleted_for": null }, "feedback_score": 91, "homepage_url": "https://github.com/puppetlabs/puppetlabs-ntp", "issues_url": "https://tickets.puppetlabs.com/browse/MODULES" }