Puppet Class: confdroid_ntp::main::files
- Inherits:
- confdroid_ntp::params
- Defined in:
- manifests/main/files.pp
Summary
Class manages files for the confdroid_ntp moduleOverview
confdroid_ntp::main::files.pp Module name: confdroid_ntp Author: 12ww1160 (12ww1160@confdroid.com)
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'manifests/main/files.pp', line 6
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
file { $cy_drift_file:
ensure => file,
owner => 'chrony',
group => 'chrony',
mode => '0644',
selrange => s0,
selrole => object_r,
seltype => chronyd_var_lib_t,
seluser => system_u,
}
# 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),
}
}
|