Merge "Nova now requires an api database to be created"
This commit is contained in:
@@ -4,3 +4,9 @@ class { '::nova::db::mysql':
|
||||
allowed_hosts => '%%',
|
||||
charset => 'utf8',
|
||||
}
|
||||
class { '::nova::db::mysql_api':
|
||||
password => hiera('CONFIG_NOVA_DB_PW'),
|
||||
host => '%%',
|
||||
allowed_hosts => '%%',
|
||||
charset => 'utf8',
|
||||
}
|
@@ -23,6 +23,7 @@ class { '::nova::api':
|
||||
neutron_metadata_proxy_shared_secret => hiera('CONFIG_NEUTRON_METADATA_PW_UNQUOTED', undef),
|
||||
default_floating_pool => $default_floating_pool,
|
||||
pci_alias => hiera('CONFIG_NOVA_PCI_ALIAS'),
|
||||
sync_db_api => true
|
||||
}
|
||||
|
||||
# TO-DO: Remove this workaround as soon as module support is implemented (see rhbz#1300662)
|
||||
|
@@ -3,6 +3,5 @@
|
||||
Firewall <| |> -> Class['nova']
|
||||
|
||||
nova_config{
|
||||
'DEFAULT/sql_connection': value => hiera('CONFIG_NOVA_SQL_CONN_NOPW');
|
||||
'DEFAULT/metadata_host': value => hiera('CONFIG_CONTROLLER_HOST');
|
||||
}
|
||||
|
@@ -3,7 +3,6 @@
|
||||
Firewall <| |> -> Class['nova']
|
||||
|
||||
nova_config{
|
||||
'DEFAULT/sql_connection': value => hiera('CONFIG_NOVA_SQL_CONN_PW');
|
||||
# metadata_host has to be IP
|
||||
'DEFAULT/metadata_host': value => force_ip(hiera('CONFIG_CONTROLLER_HOST'));
|
||||
}
|
||||
|
@@ -1,3 +1,6 @@
|
||||
$nova_db_pw = hiera('CONFIG_NOVA_DB_PW')
|
||||
$nova_mariadb_host = hiera('CONFIG_MARIADB_HOST_URL')
|
||||
|
||||
$private_key = {
|
||||
'type' => hiera('NOVA_MIGRATION_KEY_TYPE'),
|
||||
key => hiera('NOVA_MIGRATION_KEY_SECRET'),
|
||||
@@ -32,18 +35,20 @@ $nova_common_notification_driver = hiera('CONFIG_CEILOMETER_INSTALL') ? {
|
||||
}
|
||||
|
||||
class { '::nova':
|
||||
glance_api_servers => "${nova_common_rabbitmq_cfg_storage_host}:9292",
|
||||
rabbit_host => hiera('CONFIG_AMQP_HOST_URL'),
|
||||
rabbit_port => hiera('CONFIG_AMQP_CLIENTS_PORT'),
|
||||
rabbit_use_ssl => hiera('CONFIG_AMQP_SSL_ENABLED'),
|
||||
rabbit_userid => hiera('CONFIG_AMQP_AUTH_USER'),
|
||||
rabbit_password => hiera('CONFIG_AMQP_AUTH_PASSWORD'),
|
||||
verbose => true,
|
||||
debug => hiera('CONFIG_DEBUG_MODE'),
|
||||
nova_public_key => $public_key,
|
||||
nova_private_key => $private_key,
|
||||
kombu_ssl_ca_certs => $kombu_ssl_ca_certs,
|
||||
kombu_ssl_keyfile => $kombu_ssl_keyfile,
|
||||
kombu_ssl_certfile => $kombu_ssl_certfile,
|
||||
notification_driver => $nova_common_notification_driver,
|
||||
glance_api_servers => "${nova_common_rabbitmq_cfg_storage_host}:9292",
|
||||
rabbit_host => hiera('CONFIG_AMQP_HOST_URL'),
|
||||
rabbit_port => hiera('CONFIG_AMQP_CLIENTS_PORT'),
|
||||
rabbit_use_ssl => hiera('CONFIG_AMQP_SSL_ENABLED'),
|
||||
rabbit_userid => hiera('CONFIG_AMQP_AUTH_USER'),
|
||||
rabbit_password => hiera('CONFIG_AMQP_AUTH_PASSWORD'),
|
||||
verbose => true,
|
||||
debug => hiera('CONFIG_DEBUG_MODE'),
|
||||
nova_public_key => $public_key,
|
||||
nova_private_key => $private_key,
|
||||
kombu_ssl_ca_certs => $kombu_ssl_ca_certs,
|
||||
kombu_ssl_keyfile => $kombu_ssl_keyfile,
|
||||
kombu_ssl_certfile => $kombu_ssl_certfile,
|
||||
notification_driver => $nova_common_notification_driver,
|
||||
database_connection => "mysql+pymysql://nova:${nova_db_pw}@${nova_mariadb_host}/nova",
|
||||
api_database_connection => "mysql+pymysql://nova_api:${nova_db_pw}@${nova_mariadb_host}/nova_api",
|
||||
}
|
||||
|
Reference in New Issue
Block a user