Sahara: Always use httpd+mod_wsgi to deploy API in Ubuntu

Now we use httpd+mod_wsgi globally to deploy API services in our CI
jobs, so let's use the consistent architecture in Debian/Ubuntu.

Change-Id: Icdb127f59d33d161d813d1fbda5518ab9475f932
This commit is contained in:
Takashi Kajinami 2023-03-21 20:40:21 +09:00
parent 1a2add7782
commit cc8aba1dd1

View File

@ -52,9 +52,6 @@ class openstack_integration::sahara (
} }
class { 'sahara': class { 'sahara':
host => $::openstack_integration::config::host, host => $::openstack_integration::config::host,
use_ssl => $::openstack_integration::config::ssl,
cert_file => $::openstack_integration::params::cert_path,
key_file => "/etc/sahara/ssl/private/${facts['networking']['fqdn']}.pem",
default_transport_url => os_transport_url({ default_transport_url => os_transport_url({
'transport' => $::openstack_integration::config::messaging_default_proto, 'transport' => $::openstack_integration::config::messaging_default_proto,
'host' => $::openstack_integration::config::host, 'host' => $::openstack_integration::config::host,
@ -73,14 +70,9 @@ class openstack_integration::sahara (
www_authenticate_uri => $::openstack_integration::config::keystone_auth_uri, www_authenticate_uri => $::openstack_integration::config::keystone_auth_uri,
memcached_servers => $::openstack_integration::config::memcached_servers, memcached_servers => $::openstack_integration::config::memcached_servers,
} }
$service_name = $facts['os']['name'] ? {
'Debian' => $::sahara::params::api_service_name,
default => 'httpd',
}
class { 'sahara::service::api': class { 'sahara::service::api':
service_name => $service_name, service_name => 'httpd',
} }
if $service_name == 'httpd' {
include apache include apache
class { 'sahara::wsgi::apache': class { 'sahara::wsgi::apache':
bind_host => $::openstack_integration::config::host, bind_host => $::openstack_integration::config::host,
@ -89,7 +81,6 @@ class openstack_integration::sahara (
ssl_cert => $::openstack_integration::params::cert_path, ssl_cert => $::openstack_integration::params::cert_path,
workers => 2, workers => 2,
} }
}
class { 'sahara::service::engine': } class { 'sahara::service::engine': }
class { 'sahara::client': } class { 'sahara::client': }
class { 'sahara::notify': } class { 'sahara::notify': }