fix notification - https://gitlab.confdroid.com/internal/confdroid_management/-/issues/260
This commit is contained in:
@@ -6,16 +6,18 @@
|
||||
class prometheus_cd::main::files (
|
||||
) inherits prometheus_cd::params {
|
||||
require prometheus_cd::main::dirs
|
||||
file { $ps_main_file:
|
||||
ensure => file,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => etc_t,
|
||||
seluser => system_u,
|
||||
content => template('prometheus_cd/prometheus.yml.erb'),
|
||||
notify => Service[$ps_prom_service],
|
||||
if $ps_prom_host == fqdn {
|
||||
file { $ps_main_file:
|
||||
ensure => file,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => etc_t,
|
||||
seluser => system_u,
|
||||
content => template('prometheus_cd/prometheus.yml.erb'),
|
||||
notify => Service[$ps_prom_service],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user