From 13898f81ad092c85af77990722add574e7a2277c Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 13 Mar 2023 14:24:14 +0900 Subject: [PATCH] Ubuntu: Enable vitrage The vitrage packages are already available in Ubuntu. Depends-on: https://review.opendev.org/877219 Change-Id: I3fc5214e0bd49ea31ffa3bcd45a1a3bddd6ad063 --- fixtures/scenario001.pp | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/fixtures/scenario001.pp b/fixtures/scenario001.pp index 009c1b289..362e9fec3 100644 --- a/fixtures/scenario001.pp +++ b/fixtures/scenario001.pp @@ -22,19 +22,14 @@ if $facts['os']['name'] == 'Ubuntu' { case $facts['os']['family'] { 'Debian': { - $ipv6 = false - # vitrage are not packaged yet in debian/ubuntu - $enable_vitrage = false - $om_rpc = 'rabbit' - $om_notify = 'rabbit' - $notification_topics = $facts['os_service_default'] + $ipv6 = false + $om_rpc = 'rabbit' + $om_notify = 'rabbit' } 'RedHat': { - $ipv6 = true - $enable_vitrage = true - $om_rpc = 'amqp' - $om_notify = 'rabbit' - $notification_topics = ['notifications', 'vitrage_notifications'] + $ipv6 = true + $om_rpc = 'amqp' + $om_notify = 'rabbit' } default: { fail("Unsupported osfamily (${facts['os']['family']})") @@ -68,27 +63,25 @@ class { 'openstack_integration::glance': backend => 'rbd', } class { 'openstack_integration::neutron': - notification_topics => $notification_topics, + notification_topics => ['notifications', 'vitrage_notifications'], metering_enabled => true, } include openstack_integration::placement class { 'openstack_integration::nova': libvirt_rbd => true, - notification_topics => $notification_topics, + notification_topics => ['notifications', 'vitrage_notifications'], } class { 'openstack_integration::cinder': backend => 'rbd', } include openstack_integration::ceilometer class { 'openstack_integration::aodh': - notification_topics => $notification_topics, -} -if $enable_vitrage { - include openstack_integration::vitrage + notification_topics => ['notifications', 'vitrage_notifications'], } +include openstack_integration::vitrage include openstack_integration::ceph class { 'openstack_integration::heat': - notification_topics => $notification_topics, + notification_topics => ['notifications', 'vitrage_notifications'], } class { 'openstack_integration::provision': # NOTE(tkajinam): Use raw format to use rbd image cloning when creating @@ -105,6 +98,6 @@ class { 'openstack_integration::tempest': ceilometer => true, aodh => true, heat => true, - vitrage => $enable_vitrage, + vitrage => true, image_format => 'raw', }