OP#830 add control for main config

This commit is contained in:
2026-10-02 12:57:28 +02:00
parent 11b05060cd
commit 9456eedce0
4 changed files with 27 additions and 5 deletions

View File

@@ -9,6 +9,20 @@ class confdroid_ntp::main::files (
require confdroid_ntp::main::dirs
# main configuration file
file { $cy_conf_file:
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
selrange => s0,
selrole => object_r,
seltype => etc_t,
seluser => system_u,
content => template($cy_conf_erb),
notify => Service[$cy_service],
}
# drift file /var/lib/chrony/drift
# log rotation
}

View File

@@ -8,7 +8,7 @@ class confdroid_ntp::main::service (
) inherits confdroid_ntp::params {
require confdroid_ntp::main::files
service { $cy_service_name:
service { $cy_service:
ensure => running,
hasstatus => true,
hasrestart => true,