From fbfe607460951b5f3c6a1feafc04ccefcaa8c213 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Tue, 3 Jun 2025 16:16:53 +0200 Subject: [PATCH] files --- manifests/main/files.pp | 14 ++++++++++++++ manifests/params.pp | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/manifests/main/files.pp b/manifests/main/files.pp index 6269572..0262a05 100644 --- a/manifests/main/files.pp +++ b/manifests/main/files.pp @@ -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], + } } diff --git a/manifests/params.pp b/manifests/params.pp index 3ff5751..d4bd0a6 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -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 }