1 # The neutron::db::mysql class creates a MySQL database for neutron.
2 # It must be used on the MySQL server
7 # password to connect to the database. Mandatory.
10 # name of the database. Optional. Defaults to neutron.
13 # user to connect to the database. Optional. Defaults to neutron.
16 # the default source host user is allowed to connect from.
17 # Optional. Defaults to 'localhost'
20 # other hosts the user is allowd to connect from.
21 # Optional. Defaults to undef.
24 # the database charset. Optional. Defaults to 'utf8'
27 # the database collation. Optional. Defaults to 'utf8_general_ci'
30 # (optional) Deprecated. Does nothing.
32 class neutron::db::mysql (
37 $allowed_hosts = undef,
39 $collate = 'utf8_general_ci',
40 $cluster_id = 'localzone',
41 $mysql_module = undef,
45 warning('The mysql_module parameter is deprecated. The latest 2.x mysql module will be used.')
48 validate_string($password)
51 ::openstacklib::db::mysql { 'neutron':
53 password_hash => mysql_password($password),
58 allowed_hosts => $allowed_hosts,
60 ::Openstacklib::Db::Mysql['neutron'] ~> Service <| title == 'neutron-server' |>