Puppet Class: openstack::profile::mysql
- Defined in:
- manifests/profile/mysql.pp
Overview
The profile to install an OpenStack specific mysql server
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'manifests/profile/mysql.pp', line 2
class openstack::profile::mysql {
$management_network = hiera('openstack::network::management')
$inferred_address = ip_for_network($management_network)
$explicit_address = hiera('openstack::controller::address::management')
if $inferred_address != $explicit_address {
fail("MySQL setup failed. The inferred location of the database based on the
openstack::network::management hiera value is ${inferred_address}. The
explicit address from openstack::controller::address::management
is ${explicit_address}. Please correct this difference.")
}
class { '::mysql::server':
root_password => hiera('openstack::mysql::root_password'),
restart => true,
override_options => {
'mysqld' => {
'bind_address' => hiera('openstack::controller::address::management'),
'default-storage-engine' => 'innodb',
}
}
}
class { '::mysql::bindings':
python_enable => true,
ruby_enable => true,
}
Service['mysqld'] -> Anchor['database-service']
class { 'mysql::server::account_security': }
}
|