Fix check for MariaDB Galera package

https://review.openstack.org/297606 added a fact that checks which
package provides the Galera server.

After moving to Puppet 4, we need to check for a boolean value instead
of a string, otherwise it will always try to remove the existing
mariadb-server package and install it again, which causes issues
when running Packstack for a second time.

Change-Id: I297a043bd53357bdaf3388cdc82f47ed4bb8d627
This commit is contained in:
Javier Pena 2016-12-07 17:41:10 +01:00
parent 3f9ce20d7e
commit 7443dde1c1
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ class packstack::mariadb ()
create_resources(packstack::firewall, hiera('FIREWALL_MARIADB_RULES', {}))
$max_connections = hiera('CONFIG_SERVICE_WORKERS') * 128
if ($::mariadb_provides_galera == 'true') {
if ($::mariadb_provides_galera) {
# Since mariadb 10.1 galera is included in main mariadb
$mariadb_package_name = 'mariadb-server-galera'
$mariadb_present = 'present'