3
0

update erb

This commit is contained in:
Arne Teuke
2025-02-26 21:59:41 +01:00
parent 7271afe02d
commit a75ddf964c
3 changed files with 19 additions and 5 deletions

View File

@@ -6,7 +6,5 @@
class puppet_cd::main::config (
) inherits puppet_cd::params {
if $fqdn == $pt_pm_fqdn {
include puppet_cd::server::service
}
}

View File

@@ -15,7 +15,7 @@ class puppet_cd::main::files (
owner => 'root',
group => 'root',
mode => '0644',
content => template($pt_agent_conf_erb),
content => template($pt_puppet_conf_erb),
notify => Service[$pt_agent_service],
}
}
@@ -33,6 +33,7 @@ class puppet_cd::main::files (
}
if $pt_use_puppetdb == true {
file { $pt_puppetdb_conf_file:
ensure => filet,
path => $pt_puppetdb_conf_file,

View File

@@ -53,3 +53,18 @@
storeconfigs = true
storeconfigs_backend = <%= @pt_storeconfigs_backend %>
<% end end -%>
<% if @fqdn != @pt_pm_fqdn -%>
[agent]
server = <%= @pt_pm_fqdn %>
classfile = $statedir/classes.txt
default_schedules = <%= @pt_default_schedules %>
environment = <%= @pt_environment %>
masterport = <%= @pt_masterport %>
noop = <%= @pt_noop %>
pluginsync = <%= @pt_pluginsync %>
report = <%= @pt_report %>
runinterval = <%= @pt_runinterval %>
splay = <%= @pt_splay %>
splaylimit = <%= @pt_splaylimit %>
usecacheonfailure = <%= @pt_usecacheonfailure %>
<% end %>