feat: manage the facts soft limit

- set the facts soft limit for agents and servers
- prevent warnings about reaching the default 2048 soft limit
This commit is contained in:
Ben Vincent 2024-06-08 13:56:53 +10:00
parent 07c896b924
commit aaf482c9b9
4 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,7 @@ class profiles::puppet::client (
Integer $runtimeout = 3600,
Boolean $show_diff = true,
Boolean $usecacheonfailure = false,
Integer $facts_soft_limit = 4096,
) {
# dont manage puppet.conf if this is a puppetmaster

View File

@ -28,6 +28,7 @@ class profiles::puppet::server (
Integer $runinterval = 1800,
Integer $runtimeout = 3600,
Boolean $show_diff = true,
Integer $facts_soft_limit = 4096,
) {
file { '/etc/puppetlabs/puppet/puppet.conf':
@ -59,6 +60,7 @@ class profiles::puppet::server (
'storeconfigs_backend' => $storeconfigs_backend,
'reports' => $reports,
'usecacheonfailure' => $usecacheonfailure,
'facts_soft_limit' => $facts_soft_limit,
}),
notify => Service['puppetserver'],
}

View File

@ -11,3 +11,4 @@ runinterval = <%= @runinterval %>
runtimeout = <%= @runtimeout %>
show_diff = <%= @show_diff %>
usecacheonfailure = <%= @usecacheonfailure %>
number_of_facts_soft_limit = <%= @facts_soft_limit %>

View File

@ -17,6 +17,7 @@ report_server = <%= $report_server %>
runinterval = <%= $runinterval %>
runtimeout = <%= $runtimeout %>
show_diff = <%= $show_diff %>
number_of_facts_soft_limit = <%= $facts_soft_limit %>
[master]
node_terminus = <%= $node_terminus %>