diff --git a/manifests/config.pp b/manifests/config.pp index 7230f2d..7f22606 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -10,6 +10,7 @@ $config_keys_manage = $chrony::config_keys_manage, $chrony_password = $chrony::chrony_password, $keys = $chrony::keys, + $refclocks = $chrony::refclocks, $servers = $chrony::servers,) inherits chrony { file { $config: ensure => file, diff --git a/manifests/init.pp b/manifests/init.pp index e89243f..3089e4f 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -12,6 +12,7 @@ $keys = $chrony::params::keys, $package_ensure = $chrony::params::package_ensure, $package_name = $chrony::params::package_name, + $refclocks = $chrony::params::refclocks, $servers = $chrony::params::servers, $queryhosts = $chrony::params::queryhosts, $port = $chrony::params::port, diff --git a/manifests/params.pp b/manifests/params.pp index 88ca2e9..63e2e0e 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -2,6 +2,7 @@ $commandkey = 0 $keys = [] $package_ensure = 'present' + $refclocks = [] $service_enable = true $service_ensure = 'running' $service_manage = true diff --git a/templates/chrony.conf.redhat.erb b/templates/chrony.conf.redhat.erb index 45e7829..608bdd0 100644 --- a/templates/chrony.conf.redhat.erb +++ b/templates/chrony.conf.redhat.erb @@ -45,3 +45,7 @@ logchange 0.5 logdir /var/log/chrony #log measurements statistics tracking + +<% Array(@refclocks).each do |refclock| -%> +refclock <%= refclock %> +<% end -%>