From 259f660eef9240b4f8f0d3cd1619d906dbb55bb7 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 21 Feb 2023 15:35:51 +0900 Subject: [PATCH] api: Fail when service name is not supported ... instead of completing the deployment without managing services. Change-Id: I571752b3ea9e05b1f6118021ff20cafa4dc0f508 --- manifests/api.pp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manifests/api.pp b/manifests/api.pp index 06ea166e..192aa819 100644 --- a/manifests/api.pp +++ b/manifests/api.pp @@ -196,6 +196,9 @@ Use the enabled_provider_drivers parameter instead.') } Service['octavia-api'] -> Service[$service_name] Service<| title == 'httpd' |> { tag +> ['octavia-service', 'octavia-db-sync-service'] } + } else { + fail("Invalid service_name. Either octavia-api/openstack-octavia-api for \ +running as a standalone service, or httpd for being run by a httpd server") } }