OP#830 add logrotation file

This commit is contained in:
2026-10-04 12:19:36 +02:00
parent ceabad8b19
commit 16597c16d5
3 changed files with 22 additions and 0 deletions

View File

@@ -35,4 +35,15 @@ class confdroid_ntp::main::files (
}
# log rotation
file { $cy_logrotate_file:
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
selrange => s0,
selrole => object_r,
seltype => etc_t,
seluser => system_u,
content => template($cy_logrotate_erb),
}
}

View File

@@ -48,6 +48,8 @@ class confdroid_ntp::params (
$cy_conf_file = '/etc/chrony.conf'
$cy_conf_erb = 'confdroid_ntp/chrony.conf.erb'
$cy_drift_file = '/var/lib/chrony/drift'
$cy_logrotate_file = '/etc/logrotate.d/chrony'
$cy_logrotate_erb = 'confdroid_ntp/logrotate.chrony.erb'
# service
$cy_service = 'chronyd'