From b19497de491904ae3e278e4f3deed4aa082e7be1 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sat, 26 Oct 2024 02:40:11 +0900 Subject: [PATCH] Magnum: Switch to httpd + mod_wsgi Change-Id: I7bb0de0af3dc31a2b2b5db0ab2edb03d2f781156 --- .../puppet/modules/packstack/manifests/magnum.pp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packstack/puppet/modules/packstack/manifests/magnum.pp b/packstack/puppet/modules/packstack/manifests/magnum.pp index f8fc9b7ea..3147cd43f 100644 --- a/packstack/puppet/modules/packstack/manifests/magnum.pp +++ b/packstack/puppet/modules/packstack/manifests/magnum.pp @@ -24,9 +24,18 @@ class packstack::magnum () project_domain_name => 'Default', } + $bind_host = lookup('CONFIG_IP_VERSION') ? { + 'ipv6' => '::0', + default => '0.0.0.0', + # TO-DO(mmagr): Add IPv6 support when hostnames are used + } + class { 'magnum::api': - enabled => true, - host => '0.0.0.0' + service_name => 'httpd', + } + class { 'magnum::wsgi::apache': + bind_host => $bind_host, + workers => lookup('CONFIG_SERVICE_WORKERS'), } class { 'magnum::conductor':