Files
confdroid_puppet/manifests/main/config.pp

32 lines
700 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
notify { "All facts: ${facts}": }
2025-02-25 23:32:54 +01:00
if $facts['fqdn'] == $server_facts['servername'] {
notify { "This is the Puppet master node": }
}
2025-02-25 23:36:36 +01:00
if $fqdn == $pt_puppetmaster {
notify {"Me Puppetmasster":}
}
2025-02-25 23:49:16 +01:00
if $fqdn != $pt_puppetmaster {
notify {"BAA":}
}
2025-02-26 00:00:48 +01:00
# Notify the node's FQDN
notify { "This node's FQDN is ${facts['fqdn']}": }
2025-02-25 23:49:16 +01:00
2025-02-25 18:09:01 +01:00
}