files
This commit is contained in:
@@ -7,4 +7,18 @@ class automatic_cd::main::files (
|
|||||||
|
|
||||||
) inherits automatic_cd::params {
|
) inherits automatic_cd::params {
|
||||||
require automatic_cd::main::dirs
|
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],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,10 @@ class automatic_cd::params (
|
|||||||
# Service
|
# Service
|
||||||
$ac_service = 'dnf-automatic.timer'
|
$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
|
# includes must be last
|
||||||
include automatic_cd::main::config
|
include automatic_cd::main::config
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user