Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance parameter validation with more data types #63

Merged
merged 1 commit into from
Jan 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 61 additions & 55 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Default value: $chrony::params::cmdacl

##### `cmdport`

Data type: `Any`
Data type: `Optional[Stdlib::Port]`

The cmdport directive allows the port that is used for run-time monitoring (via the chronyc program)
to be altered from its default (323).
Expand All @@ -145,7 +145,7 @@ Default value: 0

##### `chrony_password`

Data type: `Any`
Data type: `String[1]`

This sets the chrony password to be used in the key file.
By default a short fixed string is used. If set explicitly to
Expand All @@ -155,71 +155,79 @@ Default value: 'xyzzy'

##### `config`

Data type: `Any`
Data type: `Stdlib::Unixpath`

This sets the file to write chrony configuration into.

Default value: $chrony::params::config

##### `config_template`

Data type: `Any`
Data type: `String[1]`

This determines which template puppet should use for the chrony configuration.

Default value: $chrony::params::config_template

##### `config_keys`

Data type: `Any`
Data type: `Stdlib::Unixpath`

This sets the file to write chrony keys into.

Default value: $chrony::params::config_keys

##### `config_keys_manage`

Data type: `Boolean`

Determines whether puppet will manage the content of the keys file after it has been created for the first time.

Default value: `true`

##### `config_keys_template`

Data type: `Any`
Data type: `String[1]`

This determines which template puppet should use for the chrony key file.

Default value: 'chrony/chrony.keys.erb'

##### `config_keys_owner`

Data type: `Any`
Data type: `Variant[Integer[0],String[1]]`

Specify unix owner of chrony keys file, defaults to 0.

Default value: $chrony::params::config_keys_owner

##### `config_keys_group`

Data type: `Any`
Data type: `Variant[Integer[0],String[1]]`

Specify unix group of chrony keys files, defaults to 0 on ArchLinux and chrony on Redhat.

Default value: $chrony::params::config_keys_group

##### `config_keys_mode`

Data type: `Any`
Data type: `Stdlib::Filemode`

Specify unix mode of chrony keys files, defaults to 0644 on ArchLinux and 0640 on Redhat.

Default value: $chrony::params::config_keys_mode

##### `keys`

Data type: `Any`
Data type: `Array[String[1]]`

An array of key lines. These are printed as-is into the chrony key file.

Default value: []

##### `local_stratum`

Data type: `Any`
Data type: `Integer[1,15]`

Override the stratum of the server which will be reported to clients
when the local reference is active.
Expand All @@ -238,15 +246,15 @@ Default value: `undef`

##### `log_options`

Data type: `Any`
Data type: `Optional[String[1]]`

Specify which information is to be logged.

Default value: `undef`

##### `package_ensure`

Data type: `Any`
Data type: `String[1]`

This can be set to 'present' or 'latest' or a specific version to choose the
chrony package to be installed.
Expand All @@ -255,12 +263,30 @@ Default value: 'present'

##### `package_name`

Data type: `Any`
Data type: `String[1]`

This determines the name of the package to install.

Default value: 'chrony'

##### `package_source`

Data type: `Optional[String]`

Source for the package when not wanting to install from a package repository. This is required if
[`package_provider`](#package_provider) is set to `rpm` or `dpkg`.

Default value: `undef`

##### `package_provider`

Data type: `Optional[String]`

Override the default package provider with a specific backend to use when installing the chrony package.
Also see [`package_source`](#package_source).

Default value: `undef`

##### `peers`

Data type: `Any`
Expand All @@ -272,7 +298,7 @@ Default value: []

##### `servers`

Data type: `Any`
Data type: `Variant[Hash,Array[Stdlib::Host]]`

This selects the servers to use for NTP servers. It can be an array of servers
or a hash of servers to their respective options.
Expand All @@ -284,6 +310,16 @@ Default value: {
'3.pool.ntp.org' => ['iburst'],
}

##### `pools`

Data type: `Variant[Hash,Array[Stdlib::Fqdn]]`

This is used to specify one or more *pools* of NTP servers to use instead of individual NTP servers.
Similar to [`server`](#server), it can be an array of pools or a hash of pools to their respective options.
See [pool](https://chrony.tuxfamily.org/doc/3.4/chrony.conf.html#pool)

Default value: {}

##### `refclocks`

Data type: `Any`
Expand Down Expand Up @@ -334,7 +370,7 @@ Default value: []

##### `port`

Data type: `Any`
Data type: `Stdlib::Port`

Port the service should listen on, to be used in combination with `queryhosts`.
Module default is `0` to prevent accidental activation of server mode.
Expand All @@ -343,31 +379,31 @@ Default value: 0

##### `service_enable`

Data type: `Any`
Data type: `Boolean`

This determines if the service should be enabled at boot.

Default value: `true`

##### `service_ensure`

Data type: `Any`
Data type: `Stdlib::Ensure::Service`

This determines if the service should be running or not.

Default value: 'running'

##### `service_manage`

Data type: `Any`
Data type: `Boolean`

This selects if puppet should manage the service in the first place.

Default value: `true`

##### `service_name`

Data type: `Any`
Data type: `String[1]`

This selects the name of the chrony service for puppet to manage.

Expand All @@ -383,7 +419,7 @@ Default value: `undef`

##### `mailonchange`

Data type: `Any`
Data type: `Optional[String[1]]`

Specify the mail you wanna alert when chronyd executes a sync grater than the `threshold`.

Expand Down Expand Up @@ -421,51 +457,21 @@ Maximum rate for chronyd to slew the time. Only float type values possible, for

Default value: `undef`

##### `config_keys_manage`

Data type: `Any`



Default value: `true`

##### `package_source`

Data type: `Optional[String]`



Default value: `undef`

##### `package_provider`

Data type: `Optional[String]`



Default value: `undef`

##### `pools`

Data type: `Any`



Default value: {}

##### `clientlog`

Data type: `Boolean`


Determines whether to log client accesses.

Default value: $chrony::params::clientlog

##### `clientloglimit`

Data type: `Optional[Integer]`


When set, specifies the maximum amount of memory in bytes that chronyd is allowed to allocate for logging of client accesses.
If not set, chrony's, default will be used. In modern versions this is 524288 bytes. Older versions defaulted to have no limit.
See [clientloglimit](https://chrony.tuxfamily.org/doc/3.4/chrony.conf.html#clientloglimit)

Default value: `undef`

Loading