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