Skip to content

Commit

Permalink
Make packstack compatible with latest puppetlabs-mysql module
Browse files Browse the repository at this point in the history
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
xbezdick committed Aug 29, 2014
1 parent abaf325 commit 27944e1
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 9 deletions.
1 change: 1 addition & 0 deletions packstack/puppet/templates/cinder_qpid.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
sql_connection => "mysql://cinder:%(CONFIG_CINDER_DB_PW)s@%(CONFIG_MYSQL_HOST)s/cinder",
verbose => true,
debug => %(CONFIG_DEBUG_MODE)s,
mysql_module => '2.2',
}
1 change: 1 addition & 0 deletions packstack/puppet/templates/cinder_rabbitmq.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
sql_connection => "mysql://cinder:%(CONFIG_CINDER_DB_PW)s@%(CONFIG_MYSQL_HOST)s/cinder",
verbose => true,
debug => %(CONFIG_DEBUG_MODE)s,
mysql_module => '2.2',
}
2 changes: 2 additions & 0 deletions packstack/puppet/templates/glance.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
sql_connection => "mysql://glance:%(CONFIG_GLANCE_DB_PW)s@%(CONFIG_MYSQL_HOST)s/glance",
verbose => true,
debug => %(CONFIG_DEBUG_MODE)s,
mysql_module => '2.2',
}

class { 'glance::backend::file': }
Expand All @@ -20,4 +21,5 @@
sql_connection => "mysql://glance:%(CONFIG_GLANCE_DB_PW)s@%(CONFIG_MYSQL_HOST)s/glance",
verbose => true,
debug => %(CONFIG_DEBUG_MODE)s,
mysql_module => '2.2',
}
2 changes: 1 addition & 1 deletion packstack/puppet/templates/glance_ceilometer_rabbitmq.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class { 'glance::notify::rabbitmq':
rabbit_host => '%(CONFIG_AMQP_HOST)s',
rabbit_port => '%(CONFIG_AMQP_CLIENTS_PORT)s',
rabbit_use_ssl => '%(CONFIG_AMQP_ENABLE_SSL)s',
rabbit_use_ssl => %(CONFIG_AMQP_ENABLE_SSL)s,
rabbit_userid => '%(CONFIG_AMQP_AUTH_USER)s',
rabbit_password => '%(CONFIG_AMQP_AUTH_PASSWORD)s',
}
Expand Down
1 change: 1 addition & 0 deletions packstack/puppet/templates/keystone.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
token_format => "%(CONFIG_KEYSTONE_TOKEN_FORMAT)s",
verbose => true,
debug => %(CONFIG_DEBUG_MODE)s,
mysql_module => '2.2',
}

class {"keystone::roles::admin":
Expand Down
1 change: 1 addition & 0 deletions packstack/puppet/templates/mysql_cinder_install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
host => "%%",
allowed_hosts => "%%",
charset => "utf8",
mysql_module => '2.2',
}
1 change: 1 addition & 0 deletions packstack/puppet/templates/mysql_glance_install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
host => "%%",
allowed_hosts => "%%",
charset => "utf8",
mysql_module => '2.2',
}
1 change: 1 addition & 0 deletions packstack/puppet/templates/mysql_heat_install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
host => "%%",
allowed_hosts => "%%",
charset => "utf8",
mysql_module => '2.2',
}
22 changes: 14 additions & 8 deletions packstack/puppet/templates/mysql_install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'],
}
}
1 change: 1 addition & 0 deletions packstack/puppet/templates/mysql_keystone_install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
password => "%(CONFIG_KEYSTONE_DB_PW)s",
allowed_hosts => "%%",
charset => "utf8",
mysql_module => '2.2',
}
1 change: 1 addition & 0 deletions packstack/puppet/templates/mysql_neutron_install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
allowed_hosts => "%%",
dbname => '%(CONFIG_NEUTRON_L2_DBNAME)s',
charset => "utf8",
mysql_module => '2.2',
}
1 change: 1 addition & 0 deletions packstack/puppet/templates/mysql_nova_install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
host => "%%",
allowed_hosts => "%%",
charset => "utf8",
mysql_module => '2.2',
}
1 change: 1 addition & 0 deletions packstack/puppet/templates/neutron_api.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
auth_password => $neutron_user_password,
auth_host => '%(CONFIG_CONTROLLER_HOST)s',
enabled => true,
mysql_module => '2.2',
}

exec { 'neutron-db-manage upgrade':
Expand Down

0 comments on commit 27944e1

Please sign in to comment.