Files
confdroid_alloy/manifests/main/files.pp

29 lines
781 B
ObjectPascal
Raw Normal View History

2025-02-24 12:15:52 +01:00
## cd_alloy::main::files.pp
2025-02-24 12:08:01 +01:00
# Module name: cd_alloy
2025-02-24 12:02:24 +01:00
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages required config files for the cd_alloy module
###############################################################################
class cd_alloy::main::files (
) inherits cd_alloy::params {
require cd_alloy::main::dirs
2025-02-24 13:24:45 +01:00
# Ensure log_targets is always an array
$log_targets_array = Array($cd_alloy::params::ay_log_targets, true)
file { $ay_main_file:
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
selrange => s0,
selrole => object_r,
seltype => etc_t,
seluser => system_u,
content => template('cd_alloy/config.alloy.erb'),
2025-02-24 13:33:20 +01:00
notify => Service[$ay_service],
2025-02-24 13:24:45 +01:00
}
2025-02-24 12:02:24 +01:00
}