xinetd: bind only on mysql network
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 5 Aug 2016 15:17:23 +0000 (11:17 -0400)
committerAlex Schultz <aschultz@redhat.com>
Sat, 10 Dec 2016 23:35:59 +0000 (23:35 +0000)
By default galera-monitor xinetd is binding on all the interfaces.
That means that the port 9200 is exposed on the external network.
Because haproxy is using the same network for the backend and the
check we can reuse it for the xinetd binding.

Change-Id: If1a50515593e81f46d67309bdeecbe84c1d0ebe4

manifests/profile/pacemaker/database/mysql.pp

index edd09bd..e5882e7 100644 (file)
@@ -161,6 +161,7 @@ class tripleo::profile::pacemaker::database::mysql (
       unless  => '/bin/test -e /etc/sysconfig/clustercheck && grep -q clustercheck /etc/sysconfig/clustercheck',
     }
     xinetd::service { 'galera-monitor' :
+      bind           => hiera('mysql_bind_host'),
       port           => '9200',
       server         => '/usr/bin/clustercheck',
       per_source     => 'UNLIMITED',