From 0171a82d58e79eda2877f5e8a2424cdd78c0ab84 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Mon, 23 Oct 2023 22:34:53 +1100 Subject: [PATCH] feat: add features to puppet.conf - reports, for sending reports to puppetdb - usecacheonfailure, to show faulures in puppetboard (when set to false) --- site/profiles/manifests/puppet/puppetmaster.pp | 2 ++ site/profiles/manifests/puppet/server.pp | 4 ++++ site/profiles/templates/puppet/server/puppet.conf.epp | 2 ++ 3 files changed, 8 insertions(+) diff --git a/site/profiles/manifests/puppet/puppetmaster.pp b/site/profiles/manifests/puppet/puppetmaster.pp index f2a559a..9819d5e 100644 --- a/site/profiles/manifests/puppet/puppetmaster.pp +++ b/site/profiles/manifests/puppet/puppetmaster.pp @@ -58,5 +58,7 @@ class profiles::puppet::puppetmaster ( default_environment => 'develop', storeconfigs => true, storeconfigs_backend => 'puppetdb', + reports => 'puppetdb', + usecacheonfailure => false, } } diff --git a/site/profiles/manifests/puppet/server.pp b/site/profiles/manifests/puppet/server.pp index bfec7d1..7f0aec5 100644 --- a/site/profiles/manifests/puppet/server.pp +++ b/site/profiles/manifests/puppet/server.pp @@ -29,6 +29,8 @@ class profiles::puppet::server ( String $default_environment, Boolean $storeconfigs, String $storeconfigs_backend, + String $reports, + Boolean $usecacheonfailure, ) { file { '/etc/puppetlabs/puppet/puppet.conf': @@ -51,6 +53,8 @@ class profiles::puppet::server ( 'default_environment' => $default_environment, 'storeconfigs' => $storeconfigs, 'storeconfigs_backend' => $storeconfigs_backend, + 'reports' => $reports, + 'usecacheonfailure' => $usecacheonfailure, }), notify => Service['puppetserver'], } diff --git a/site/profiles/templates/puppet/server/puppet.conf.epp b/site/profiles/templates/puppet/server/puppet.conf.epp index c241a70..226346d 100644 --- a/site/profiles/templates/puppet/server/puppet.conf.epp +++ b/site/profiles/templates/puppet/server/puppet.conf.epp @@ -19,3 +19,5 @@ default_manifest = <%= $default_manifest %> default_environment = <%= $default_environment %> storeconfigs = <%= $storeconfigs %> storeconfigs_backend = <%= $storeconfigs_backend %> +reports = <%= $reports %> +usecacheonfailure = <%= $usecacheonfailure %>