Giuseppe Lavagetto has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/317480

Change subject: monitoring::host: default to $main_ipaddress
......................................................................

monitoring::host: default to $main_ipaddress

On servers where docker is installed, docker0 will be selected by the
'ipaddress' fact and this return a wrong result.

Change-Id: Ib750a1366256ffdafb6e0fec553b909d234e938b
---
M modules/monitoring/manifests/host.pp
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/80/317480/1

diff --git a/modules/monitoring/manifests/host.pp 
b/modules/monitoring/manifests/host.pp
index 7764c9a..d1c7071 100644
--- a/modules/monitoring/manifests/host.pp
+++ b/modules/monitoring/manifests/host.pp
@@ -2,7 +2,7 @@
 # Exports the resource that monitors hosts in icinga/shinken
 #
 define monitoring::host (
-    $ip_address    = $::ipaddress,
+    $ip_address    = $::main_ipaddress,
     $host_fqdn     = undef,
     $group         = undef,
     $ensure        = present,

-- 
To view, visit https://gerrit.wikimedia.org/r/317480
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib750a1366256ffdafb6e0fec553b909d234e938b
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Giuseppe Lavagetto <glavage...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to