Enable access to HAProxy stats page
authorYanis Guenane <yanis.guenane@enovance.com>
Thu, 9 Apr 2015 08:01:24 +0000 (10:01 +0200)
committerYanis Guenane <yanis.guenane@enovance.com>
Mon, 13 Apr 2015 07:24:44 +0000 (09:24 +0200)
Enable access to the HAProxy stats page. The listen directive is bound
to the controller virtual IP address.

Change-Id: Ie0012da77ffdd9bfa8f06341aca2d70991558a28

manifests/loadbalancer.pp

index ccc9d25..ed64e6d 100644 (file)
@@ -242,11 +242,11 @@ class tripleo::loadbalancer (
   }
 
   haproxy::listen { 'haproxy.stats':
-    ipaddress        => '*',
+    ipaddress        => $controller_virtual_ip,
     ports            => '1993',
     mode             => 'http',
     options          => {
-      'stats' => 'enable',
+      'stats' => ['enable', 'uri /'],
     },
     collect_exported => false,
   }