3
0

OP#195 change class names

This commit is contained in:
12ww1160
2025-12-13 13:25:01 +01:00
parent 92285116d4
commit 0ff1f053e6
10 changed files with 61 additions and 61 deletions

View File

@@ -1,12 +1,12 @@
# prometheus_cd::main::files.pp
# Module name: prometheus_cd
# confdroid_prometheus::main::files.pp
# Module name: confdroid_prometheus
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages configuration files for the prometheus_cd module.
# @summary Class manages configuration files for the confdroid_prometheus module.
##############################################################################
class prometheus_cd::main::files (
) inherits prometheus_cd::params {
class confdroid_prometheus::main::files (
) inherits confdroid_prometheus::params {
if ($ps_prom_host == $fqdn) and ($manage_prometheus == true) {
require prometheus_cd::main::dirs
require confdroid_prometheus::main::dirs
file { $ps_main_file:
ensure => file,
owner => 'root',
@@ -16,7 +16,7 @@ class prometheus_cd::main::files (
selrole => object_r,
seltype => etc_t,
seluser => system_u,
content => template('prometheus_cd/prometheus.yml.erb'),
content => template('confdroid_prometheus/prometheus.yml.erb'),
notify => Service[$ps_prom_service],
}
file { $ps_system_service_file:
@@ -28,7 +28,7 @@ class prometheus_cd::main::files (
selrole => object_r,
seltype => systemd_unit_file_t,
seluser => unconfined_u,
content => template('prometheus_cd/override.conf.erb'),
content => template('confdroid_prometheus/override.conf.erb'),
notify => Service[$ps_prom_service],
}
file { $ps_web_config_file:
@@ -40,7 +40,7 @@ class prometheus_cd::main::files (
selrole => object_r,
seltype => etc_t,
seluser => system_u,
content => template('prometheus_cd/web.yml.erb'),
content => template('confdroid_prometheus/web.yml.erb'),
notify => Service[$ps_prom_service],
}
if $ps_enable_pruning == true {
@@ -53,7 +53,7 @@ class prometheus_cd::main::files (
selrole => object_r,
seltype => usr_,
seluser => unconfined_u,
content => template('prometheus_cd/prune_blocks.erb'),
content => template('confdroid_prometheus/prune_blocks.erb'),
# notify Service ToDo,
}
file { $ps_env_file:
@@ -65,7 +65,7 @@ class prometheus_cd::main::files (
selrole => object_r,
seltype => usr_,
seluser => unconfined_u,
content => template('prometheus_cd/prune.env.erb'),
content => template('confdroid_prometheus/prune.env.erb'),
}
file { $ps_pruning_svc_file:
ensure => file,
@@ -76,7 +76,7 @@ class prometheus_cd::main::files (
selrole => object_r,
seltype => systemd_unit_file_t,
seluser => unconfined_u,
content => template('prometheus_cd/prometheus-prune-service.erb'),
content => template('confdroid_prometheus/prometheus-prune-service.erb'),
notify => Exec['systemd-daemon-reload'],
}
file { $ps_pruning_timer_file:
@@ -88,7 +88,7 @@ class prometheus_cd::main::files (
selrole => object_r,
seltype => systemd_unit_file_t,
seluser => unconfined_u,
content => template('prometheus_cd/prometheus-prune-timer.erb'),
content => template('confdroid_prometheus/prometheus-prune-timer.erb'),
notify => Exec['systemd-daemon-reload'],
}
file { $ps_prune_log_file: