-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make packstack compatible with latest puppetlabs-mysql module
Update of mysql module allows us to update all openstack puppet modules to their latest versions. This will allow us to test and deploy Juno release. Requires: redhat-openstack/openstack-puppet-modules#96 Requires: rhbz#1134328 Closes-Bug: rhbz#1129760 Change-Id: I155b9fbf258d12a64d7b6e2be3f623b709b7289e
- Loading branch information
Showing
13 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
host => "%%", | ||
allowed_hosts => "%%", | ||
charset => "utf8", | ||
mysql_module => '2.2', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
host => "%%", | ||
allowed_hosts => "%%", | ||
charset => "utf8", | ||
mysql_module => '2.2', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
host => "%%", | ||
allowed_hosts => "%%", | ||
charset => "utf8", | ||
mysql_module => '2.2', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,11 +13,17 @@ | |
} | ||
|
||
class {"mysql::server": | ||
package_name => "mariadb-galera-server", | ||
manage_service => $manage_service, | ||
config_hash => {bind_address => "0.0.0.0", | ||
default_engine => "InnoDB", | ||
root_password => "%(CONFIG_MYSQL_PW)s",} | ||
package_name => "mariadb-galera-server", | ||
service_manage => $manage_service, | ||
restart => true, | ||
root_password => "%(CONFIG_MYSQL_PW)s", | ||
override_options => { | ||
'mysqld' => { bind_address => "0.0.0.0", | ||
default_storage_engine => "InnoDB", | ||
max_connections => "1024", | ||
open_files_limit => '-1', | ||
} | ||
} | ||
} | ||
|
||
include packstack::innodb | ||
|
@@ -26,15 +32,15 @@ | |
# this is done in mysql::server::account_security but has problems | ||
# when there is no fqdn, so we're defining a slightly different one here | ||
database_user { [ '[email protected]', 'root@::1', '@localhost', '@%%' ]: | ||
ensure => 'absent', require => Class['mysql::config'], | ||
ensure => 'absent', require => Class['mysql::server'], | ||
} | ||
if ($::fqdn != "" and $::fqdn != "localhost") { | ||
database_user { [ "root@${::fqdn}", "@${::fqdn}"]: | ||
ensure => 'absent', require => Class['mysql::config'], | ||
ensure => 'absent', require => Class['mysql::server'], | ||
} | ||
} | ||
if ($::fqdn != $::hostname and $::hostname != "localhost") { | ||
database_user { ["root@${::hostname}", "@${::hostname}"]: | ||
ensure => 'absent', require => Class['mysql::config'], | ||
ensure => 'absent', require => Class['mysql::server'], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
password => "%(CONFIG_KEYSTONE_DB_PW)s", | ||
allowed_hosts => "%%", | ||
charset => "utf8", | ||
mysql_module => '2.2', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
allowed_hosts => "%%", | ||
dbname => '%(CONFIG_NEUTRON_L2_DBNAME)s', | ||
charset => "utf8", | ||
mysql_module => '2.2', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
host => "%%", | ||
allowed_hosts => "%%", | ||
charset => "utf8", | ||
mysql_module => '2.2', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters