Files
confdroid_puppet/manifests/main/config.pp

33 lines
743 B
ObjectPascal
Raw Normal View History

2025-02-25 18:09:01 +01:00
## puppet_cd::main::config.pp
# Module name: puppet_cd
# Author: Arne Teuke (arne_teuke@confdroid)
# @summary Class manages parameters for the puppet_cd module.
###############################################################################
class puppet_cd::main::config (
) inherits puppet_cd::params {
2025-02-25 23:32:54 +01:00
# test
2025-02-26 00:15:49 +01:00
# Debug all facts
2025-02-26 00:37:16 +01:00
notify { "All facts: ${facts} ": }
2025-02-26 00:46:50 +01:00
2025-02-26 00:19:16 +01:00
#if $facts['fqdn'] == $server_facts['servername'] {
# notify { "This is the Puppet master node": }
#}
2025-02-25 23:36:36 +01:00
2025-02-26 00:19:16 +01:00
#if $fqdn == $pt_puppetmaster {
# notify {"Me Puppetmasster":}
#}
2025-02-25 23:49:16 +01:00
2025-02-26 00:19:16 +01:00
#if $fqdn != $pt_puppetmaster {
# notify {"BAA":}
#}
2025-02-25 23:49:16 +01:00
2025-02-26 00:00:48 +01:00
# Notify the node's FQDN
2025-02-26 00:37:16 +01:00
notify { "This node's FQDN is ${facts['fqdn']}": }
2025-02-25 23:49:16 +01:00
2025-02-26 00:41:16 +01:00
notify { " FQDN is ${fqdn}": }
2025-02-25 18:09:01 +01:00
}