diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-01-10 16:12:52 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-01-10 16:12:52 +0000 |
commit | 87c632ce6e7231793c11eaccf2f5ecf0e15ec310 (patch) | |
tree | 2912c9ff756ce10b9c295b039cdb9b8e82504e6b /manifests/profile/base/nova | |
parent | 50e483f77e9d8a322a5afd5a20504b78bd48397c (diff) | |
parent | 7af9ff39e96acd306bdddcf8f6e48a20fe7ee3f0 (diff) |
Merge "Move nova cells db sync into nova-api profile"
Diffstat (limited to 'manifests/profile/base/nova')
-rw-r--r-- | manifests/profile/base/nova/api.pp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/manifests/profile/base/nova/api.pp b/manifests/profile/base/nova/api.pp index 69b90fa..b4e3d74 100644 --- a/manifests/profile/base/nova/api.pp +++ b/manifests/profile/base/nova/api.pp @@ -85,6 +85,25 @@ class tripleo::profile::base::nova::api ( $tls_keyfile = undef } + if ($step >= 3 and $sync_db) { + $messaging_hosts_real = any2array($::tripleo::profile::base::nova::messaging_hosts) + # TODO(aschultz): remove sprintf once we properly type the port, needs + # to be a string for the os_transport_url function. + $messaging_port_real = sprintf('%s', $::tripleo::profile::base::nova::messaging_port) + $messaging_use_ssl_real = sprintf('%s', bool2num(str2bool($::tripleo::profile::base::nova::messaging_use_ssl))) + + class { '::nova::db::sync_cell_v2': + transport_url => os_transport_url({ + 'transport' => $::tripleo::profile::base::nova::messaging_driver, + 'hosts' => $messaging_hosts_real, + 'port' => $messaging_port_real, + 'username' => $::tripleo::profile::base::nova::messaging_username, + 'password' => $::tripleo::profile::base::nova::messaging_password, + 'ssl' => $messaging_use_ssl_real, + }), + } + } + if $step >= 4 or ($step >= 3 and $sync_db) { if hiera('nova::use_ipv6', false) { |