3
0

OP#188 create file

This commit is contained in:
2025-12-04 12:15:20 +01:00
parent de0a84737e
commit 3b20a4a566
4 changed files with 27 additions and 0 deletions

View File

@@ -43,5 +43,24 @@ class prometheus_cd::main::files (
content => template('prometheus_cd/web.yml.erb'),
notify => Service[$ps_prom_service],
}
if $ps_enable_pruning == true {
file { $ps_pruning_file:
ensure => file,
owner => 'prometheus',
group => 'prometheus',
mode => '0750',
selrange => s0,
selrole => object_r,
seltype => usr_,
seluser => unconfined_u,
content => template('prometheus_cd/prune_blocks.erb'),
# notify Service ToDo,
}
}
if $ps_enable_pruning == false {
file { $ps_pruning_fir:
ensure => absent,
}
}
}
}