Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/nagios/manifests/server.pp

Issue 5862055731003392: Noissue - Ensure the correct FQDNs are computed for Nagios (Closed)
Patch Set: Created March 17, 2015, 2:49 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/nagios/manifests/server.pp
===================================================================
--- a/modules/nagios/manifests/server.pp
+++ b/modules/nagios/manifests/server.pp
@@ -176,7 +176,11 @@
$groups = [],
) {
- $fqdn_name = join([$name, $nagios::server::zone], '.')
+ if $dns == undef {
+ $fqdn_name = join([$name, $nagios::server::zone], '.')
+ } else {
+ $fqdn_name = $dns
+ }
nagios_host {$fqdn_name:
use => 'generic-host',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld