Add nova cell v2 setup

Cells are required. This patch adds setup of the default cell.

Change-Id: I0bb692997c8f438a9c6172f53a8c553c0b9bbbfe
This commit is contained in:
Alfredo Moralejo 2017-01-27 14:05:19 +01:00
parent e649710c78
commit 8168496c9e
2 changed files with 2 additions and 13 deletions

View File

@ -100,20 +100,7 @@ class packstack::mariadb::services ()
host => '%',
allowed_hosts => '%',
charset => 'utf8',
#TODO(apevec): enable it again when it's fixed upstream in nova
# https://bugs.launchpad.net/nova/+bug/1656276
setup_cell0 => false,
}
#class { '::nova::db::sync_cell_v2':
# transport_url => os_transport_url({
# 'transport' => 'rabbit',
# 'hosts' => [hiera('CONFIG_AMQP_HOST_URL')],
# 'port' => hiera('CONFIG_AMQP_CLIENTS_PORT'),
# 'username' => hiera('CONFIG_AMQP_AUTH_USER'),
# 'password' => hiera('CONFIG_AMQP_AUTH_PASSWORD'),
# 'ssl' => sprintf('%s', hiera('CONFIG_AMQP_SSL_ENABLED')),
# })
#}
}
if hiera('CONFIG_PANKO_INSTALL') == 'y' and

View File

@ -52,6 +52,8 @@ class packstack::nova::api ()
}
}
include ::nova::cell_v2::simple_setup
$manage_flavors = str2bool(hiera('CONFIG_NOVA_MANAGE_FLAVORS'))
if $manage_flavors {
Class['::nova::api'] -> Nova_flavor<||>