Add flag to enable/disable the HAProxy stats interface
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>
Mon, 26 Jun 2017 11:13:36 +0000 (14:13 +0300)
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>
Mon, 26 Jun 2017 11:13:36 +0000 (14:13 +0300)
This was made configurable in a recent commit [1] So this flag makes it
easier for deployers to use that functionality.

[1] Ic68266eaf39d6803f7c3e299095578bbcfd63b88

Change-Id: Iffff20dcda53bc7237586dd240e581bcb0282844

puppet/services/haproxy.yaml
releasenotes/notes/Make-exposing-haproxy-stats-interface-configurable-2b634793c4f13950.yaml [new file with mode: 0644]

index 619cf13..5bdc3b8 100644 (file)
@@ -38,6 +38,10 @@ parameters:
     default: /dev/log
     description: Syslog address where HAproxy will send its log
     type: string
+  HAProxyStatsEnabled:
+    default: true
+    description: Whether or not to enable the HAProxy stats interface.
+    type: boolean
   RedisPassword:
     description: The password for Redis
     type: string
@@ -95,6 +99,7 @@ outputs:
             tripleo::haproxy::redis_password: {get_param: RedisPassword}
             tripleo::haproxy::ca_bundle: {get_param: InternalTLSCAFile}
             tripleo::haproxy::crl_file: {get_param: InternalTLSCRLPEMFile}
+            tripleo::haproxy::haproxy_stats: {get_param: HAProxyStatsEnabled}
             tripleo::profile::base::haproxy::certificates_specs:
               map_merge:
                 - get_attr: [HAProxyPublicTLS, role_data, certificates_specs]
diff --git a/releasenotes/notes/Make-exposing-haproxy-stats-interface-configurable-2b634793c4f13950.yaml b/releasenotes/notes/Make-exposing-haproxy-stats-interface-configurable-2b634793c4f13950.yaml
new file mode 100644 (file)
index 0000000..193154d
--- /dev/null
@@ -0,0 +1,4 @@
+---
+features:
+  - The HAProxy stats interface can now be enabled/disabled with the
+    HAProxyStatsEnabled flag. Note that it's still enabled by default.