1 # The barometer::db::mysql class implements mysql backend for barometer
3 # This class can be used to create tables, users and grant
4 # privilege for a mysql barometer database.
9 # (Mandatory) Password to connect to the database.
10 # Defaults to 'false'.
13 # (Optional) Name of the database.
14 # Defaults to 'barometer'.
17 # (Optional) User to connect to the database.
18 # Defaults to 'barometer'.
21 # (Optional) The default source host user is allowed to connect from.
22 # Defaults to '127.0.0.1'
25 # (Optional) Other hosts the user is allowed to connect from.
26 # Defaults to 'undef'.
29 # (Optional) The database charset.
33 # (Optional) The database collate.
34 # Only used with mysql modules >= 2.2.
35 # Defaults to 'utf8_general_ci'
38 # Class['mysql::server']
46 class barometer::db::mysql(
48 $dbname = 'barometer',
52 $collate = 'utf8_general_ci',
53 $allowed_hosts = undef
56 validate_string($password)
58 ::openstacklib::db::mysql { 'barometer':
60 password_hash => mysql_password($password),
65 allowed_hosts => $allowed_hosts,
68 ::Openstacklib::Db::Mysql['barometer'] ~> Exec<| title == 'barometer-manage db_sync' |>