6ef55f4420
Add ability to use python-pymysql library as backend for MySQL connections, and use it as default. Update acceptance tests to use pyMySQL. Change-Id: I625f1e6adb5ad581c293431d90d1a9e5578472d4 Docs: https://wiki.openstack.org/wiki/PyMySQL_evaluation
45 lines
1.2 KiB
Puppet
45 lines
1.2 KiB
Puppet
# First, install a mysql server
|
|
class { '::mysql::server':
|
|
# sahara documentation recommends this configuration.
|
|
override_options => {
|
|
'mysqld' => {
|
|
'max_allowed_packet' => '256M',
|
|
},
|
|
},
|
|
|
|
# many configurations will need this line, too
|
|
package_name => 'mariadb-galera-server',
|
|
|
|
# if you're installing into an existing openstack
|
|
manage_config_file => false,
|
|
purge_conf_dir => false,
|
|
}
|
|
|
|
# Then, create a database
|
|
class { '::sahara::db::mysql':
|
|
password => 'a_big_secret',
|
|
}
|
|
|
|
# Then the common class
|
|
class { '::sahara':
|
|
database_connection => 'mysql+pymysql://sahara:a_big_secret@127.0.0.1:3306/sahara',
|
|
verbose => true,
|
|
debug => true,
|
|
admin_user => 'admin',
|
|
admin_password => 'secrets_everywhere',
|
|
admin_tenant_name => 'admin',
|
|
auth_uri => 'http://127.0.0.1:5000/v2.0/',
|
|
identity_uri => 'http://127.0.0.1:35357/',
|
|
host => '0.0.0.0',
|
|
port => 8386,
|
|
use_floating_ips => true,
|
|
}
|
|
|
|
# Please note, that if you enabled 'all' service, then you should not enable 'api' and 'engine'. And vice versa.
|
|
class { '::sahara::service::all': }
|
|
|
|
# Finally, make it accessible
|
|
class { '::sahara::keystone::auth':
|
|
password => 'secrete',
|
|
}
|