add service override file to allow config flags - https://gitlab.confdroid.com/internal/confdroid_management/-/issues/260
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
##############################################################################
|
||||
class prometheus_cd::main::files (
|
||||
) inherits prometheus_cd::params {
|
||||
require prometheus_cd::main::dirs
|
||||
if ($ps_prom_host == $fqdn) and ($manage_prometheus == true) {
|
||||
if ($ps_prom_host == $fqdn) and ($manage_prometheus == true) {
|
||||
require prometheus_cd::main::dirs
|
||||
file { $ps_main_file:
|
||||
ensure => file,
|
||||
owner => 'root',
|
||||
@@ -19,5 +19,17 @@ class prometheus_cd::main::files (
|
||||
content => template('prometheus_cd/prometheus.yml.erb'),
|
||||
notify => Service[$ps_prom_service],
|
||||
}
|
||||
file { $ps_system_service_file:
|
||||
ensure => file,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => systemd_unit_file_t,
|
||||
seluser => unconfined_u,
|
||||
content => template('prometheus_cd/override.conf.erb'),
|
||||
notify => Service[$ps_prom_service],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user