This commit is contained in:
Arne Teuke
2025-06-03 16:16:53 +02:00
parent 2bc5d9a1aa
commit fbfe607460
2 changed files with 18 additions and 0 deletions

View File

@@ -7,4 +7,18 @@ class automatic_cd::main::files (
) inherits automatic_cd::params {
require automatic_cd::main::dirs
file { $ac_main_config:
ensure => file,
path => $ac_main_config,
owner => 'root',
group => 'root',
mode => '0644',
selrange => s0,
selrole => object_r,
seltype => etc_t,
seluser => system_u,
content => template($ac_main_config_erb),
notify => Service[$ac_service],
}
}

View File

@@ -20,6 +20,10 @@ class automatic_cd::params (
# Service
$ac_service = 'dnf-automatic.timer'
# Files
$ac_main_config = '/etc/dnf/automatic.conf'
$ac_main_config_erb = '/automatic_cd/automatic.conf.erb'
# includes must be last
include automatic_cd::main::config
}