29 lines
736 B
Puppet
29 lines
736 B
Puppet
#### confdroid_ntp::main::files.pp
|
|
# Module name: confdroid_ntp
|
|
# Author: 12ww1160 (12ww1160@confdroid.com)
|
|
# @summary Class manages files for the confdroid_ntp module
|
|
###############################################################################
|
|
class confdroid_ntp::main::files (
|
|
|
|
) inherits confdroid_ntp::params {
|
|
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
|
|
}
|