From a72460de44b883edb31242739729aae1c3bb06a0 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Wed, 26 Feb 2025 01:03:26 +0100 Subject: [PATCH] adding test --- manifests/main/config.pp | 12 ++++-------- manifests/params.pp | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/manifests/main/config.pp b/manifests/main/config.pp index 6182bd2..a504e5e 100644 --- a/manifests/main/config.pp +++ b/manifests/main/config.pp @@ -7,14 +7,10 @@ class puppet_cd::main::config ( ) inherits puppet_cd::params { - # test - # Debug all facts - #notify { "All facts: ${facts} ": } - - #if $facts['fqdn'] == $server_facts['servername'] { - # notify { "This is the Puppet master node": } - #} + if $facts['fqdn'] == $server_facts['servername'] { + notify { "This is the Puppet master node": } + } #if $fqdn == $pt_puppetmaster { # notify {"Me Puppetmasster":} @@ -27,6 +23,6 @@ class puppet_cd::main::config ( # Notify the node's FQDN #notify { "This node's FQDN is ${facts['fqdn']}": } -notify { " FQDN is $fqdn": } +notify { " FQDN is ${fqdn}": } } diff --git a/manifests/params.pp b/manifests/params.pp index 850ae2c..1b608aa 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -6,7 +6,7 @@ class puppet_cd::params ( $pt_manage_fw = true, - $pt_puppetmaster = 'client001.studydivision.local', + $pt_puppetmaster = undef, ) {