]> xn--ix-yja.es Git - alex.git/commitdiff
Allow changing Nagios host address
authoralex <alex@pdp7.net>
Thu, 2 Feb 2023 19:54:08 +0000 (20:54 +0100)
committeralex <alex@pdp7.net>
Thu, 2 Feb 2023 19:54:24 +0000 (20:54 +0100)
personal_infra/puppet/site/00-common.pp

index 855d1cd19b0bca152f21d71346f2b9ad55c92c7b..29e63830bf96e4117aebbc364512705824975d58 100644 (file)
@@ -10,7 +10,7 @@ $nagios_host = $facts['networking']['fqdn']
 
 nagios_host {$nagios_host:
   use => 'generic-host',
-  address => $facts['networking']['fqdn'],
+  address => lookup({name => 'nagios.address', default_value => $facts['networking']['fqdn']}),
   max_check_attempts => 5,
   contact_groups => "admins",
   check_command => "check-host-alive",