2026-10-01 13:30:42 +02:00
|
|
|
## confdroid_ntp::params.pp
|
|
|
|
|
# Module name: confdroid_ntp
|
|
|
|
|
# Author: 12ww1160 (12ww1160@confdroid.com)
|
|
|
|
|
# @summary Class contains all parameters for the confdroid_ntp module.
|
2026-10-01 13:52:10 +02:00
|
|
|
# @param [Array] cy_reqpackages List of required packages to install
|
|
|
|
|
# for the confdroid_ntp module.
|
|
|
|
|
# @param [String] cy_pkg_ensure Ensure state of the required packages.
|
2026-10-01 13:30:42 +02:00
|
|
|
##############################################################################
|
|
|
|
|
class confdroid_ntp::params (
|
2026-10-01 13:52:10 +02:00
|
|
|
|
|
|
|
|
# installation
|
2026-10-02 12:57:28 +02:00
|
|
|
Array $cy_reqpackages = ['chrony'],
|
|
|
|
|
String $cy_pkg_ensure = 'present',
|
|
|
|
|
|
|
|
|
|
# configuration
|
|
|
|
|
Array $cy_conf_servers = ['0.pool.ntp.org', '1.pool.ntp.org', '2.pool.ntp.org', '3.pool.ntp.org'],
|
2026-10-01 13:52:10 +02:00
|
|
|
|
2026-10-01 13:30:42 +02:00
|
|
|
) {
|
|
|
|
|
# defaults
|
2026-10-02 12:57:28 +02:00
|
|
|
$fqdn = $facts['networking']['fqdn']
|
2026-10-01 13:30:42 +02:00
|
|
|
|
2026-10-01 14:14:07 +02:00
|
|
|
# dirs
|
|
|
|
|
|
|
|
|
|
# files
|
2026-10-02 12:57:28 +02:00
|
|
|
$cy_conf_file = '/etc/chrony.conf'
|
|
|
|
|
$cy_conf_erb = 'confdroid_ntp/chrony.conf.erb'
|
2026-10-01 14:14:07 +02:00
|
|
|
|
|
|
|
|
# service
|
2026-10-02 12:57:28 +02:00
|
|
|
$cy_service = 'chronyd'
|
2026-10-01 14:14:07 +02:00
|
|
|
|
2026-10-01 13:30:42 +02:00
|
|
|
# includes must be last
|
|
|
|
|
include confdroid_ntp::main::config
|
|
|
|
|
}
|