Use parameter name to configure gmcast_listen_addr
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>
Mon, 26 Sep 2016 12:59:58 +0000 (15:59 +0300)
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>
Mon, 26 Sep 2016 13:53:22 +0000 (16:53 +0300)
This used to used mysql_bind_ip, but this parameter is quite misleading
since what it actually configures is not the bind-ip itself, but the
gmcast.listen_addr parameter. This fixes that confusion.

Depends-On: Iea4bd67074824e5dc6732fd7e408743e693d80b3
Change-Id: I2b114600e622491ccff08a07946926734b50ac70

puppet/services/pacemaker/database/mysql.yaml

index f6d4be2..7deaf0c 100644 (file)
@@ -43,5 +43,13 @@ outputs:
                   '"%{::fqdn_$NETWORK}"'
                 params:
                   $NETWORK: {get_param: [ServiceNetMap, MysqlNetwork]}
+            # NOTE: bind IP is found in Heat replacing the network name with the
+            # local node IP for the given network; replacement examples
+            # (eg. for internal_api):
+            # internal_api -> IP
+            # internal_api_uri -> [IP]
+            # internal_api_subnet - > IP/CIDR
+            tripleo::profile::pacemaker::database::mysql::gmcast_listen_addr:
+              get_param: [ServiceNetMap, MysqlNetwork]
       step_config: |
         include ::tripleo::profile::pacemaker::database::mysql