3
0
Arne Teuke
2025-10-30 15:20:37 +01:00
parent 0193fa080b
commit 91e9237224
4 changed files with 493 additions and 1 deletions

View File

@@ -18,6 +18,23 @@ class puppet_cd::main::files (
content => template($pt_puppet_conf_erb),
notify => Service[$pt_agent_service],
}
if $pt_use_puppetdb == true {
file { $pt_node_rb_file:
ensure => file,
owner => 'puppet',
group => 'puppet',
mode => '0550',
selrole => object_r,
seltype => foreman_enc_t,
seluser => system_u,
content => template($pt_node_rb_erb),
}
}
if $pt_use_puppetdb != true {
file { $pt_node_rb_file:
ensure => absent,
}
}
}
if $fqdn == $pt_pm_fqdn {
@@ -52,8 +69,17 @@ class puppet_cd::main::files (
content => template($pt_routes_erb),
notify => Service[$pt_server_service],
}
file { $pt_node_rb_file:
ensure => file,
owner => 'puppet',
group => 'puppet',
mode => '0550',
selrole => object_r,
seltype => foreman_enc_t,
seluser => system_u,
content => template($pt_node_rb_erb),
}
}
if $pt_use_puppetdb != true {
file { $pt_puppetdb_conf_file:
ensure => absent,