3
0

update erb

This commit is contained in:
Arne Teuke
2025-02-26 21:13:33 +01:00
parent f3eaf43384
commit 9f78fd71fe
3 changed files with 103 additions and 5 deletions

View File

@@ -7,4 +7,40 @@ class puppet_cd::main::files (
) inherits puppet_cd::params {
require puppet_cd::main::dirs
if $fqdn != $pt_pm_fqdn {
file { $pt_puppet_conf_file:
ensure => file,
path => $pt_puppet_conf_file,
owner => 'root',
group => 'root',
mode => '0644',
content => template($pt_puppet_conf_erb),
notify => Service[$pt_agent_service],
}
}
if $fqdn == $pt_pm_fqdn {
file { $pt_puppet_conf_file:
ensure => file,
path => $pt_puppet_conf_file,
owner => 'root',
group => 'root',
mode => '0644',
content => template($pt_puppet_conf_erb),
notify => Service[$pt_agent_service,$pt_server_service],
}
}
if $pt_use_puppetdb == true {
file { $pt_puppetdb_conf_file:
ensure => filet,
path => $pt_puppetdb_conf_file,
owner => 'root',
group => 'root',
mode => '0644',
content => template($pt_puppetdb_conf_erb),
notify => Service[$pt_agent_service,$pt_server_service],
}
}
}