api: Fail when service name is not supported

... instead of completing the deployment without managing services.

Change-Id: I571752b3ea9e05b1f6118021ff20cafa4dc0f508
This commit is contained in:
Takashi Kajinami 2023-02-21 15:35:51 +09:00
parent 7df58f7657
commit 259f660eef
1 changed files with 3 additions and 0 deletions

View File

@ -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")
}
}