Magnum: Use httpd + mod_wsgi to run api service
httpd + mod_wsgi is now widely used to deploy api services. This updates the deployment pattern of Magnum api service to follow that standard. Change-Id: Id6cf3384fc3f667142be61b2ba9ec0a27c1a218d
This commit is contained in:
parent
c8ef87d709
commit
5fe55a5ad4
@ -20,15 +20,10 @@ class openstack_integration::magnum (
|
|||||||
|
|
||||||
if $::openstack_integration::config::ssl {
|
if $::openstack_integration::config::ssl {
|
||||||
openstack_integration::ssl_key { 'magnum':
|
openstack_integration::ssl_key { 'magnum':
|
||||||
|
notify => Service['httpd'],
|
||||||
require => Package['magnum-common'],
|
require => Package['magnum-common'],
|
||||||
}
|
}
|
||||||
$key_file = "/etc/magnum/ssl/private/${facts['networking']['fqdn']}.pem"
|
Exec['update-ca-certificates'] ~> Service['httpd']
|
||||||
$crt_file = $::openstack_integration::params::cert_path
|
|
||||||
File[$key_file] ~> Service<| tag == 'magnum-service' |>
|
|
||||||
Exec['update-ca-certificates'] ~> Service<| tag == 'magnum-service' |>
|
|
||||||
} else {
|
|
||||||
$key_file = undef
|
|
||||||
$crt_file = undef
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class { 'magnum::keystone::auth':
|
class { 'magnum::keystone::auth':
|
||||||
@ -102,10 +97,15 @@ class openstack_integration::magnum (
|
|||||||
}
|
}
|
||||||
|
|
||||||
class { 'magnum::api':
|
class { 'magnum::api':
|
||||||
host => $::openstack_integration::config::host,
|
host => $::openstack_integration::config::host,
|
||||||
enabled_ssl => $::openstack_integration::config::ssl,
|
service_name => 'httpd',
|
||||||
ssl_cert_file => $crt_file,
|
}
|
||||||
ssl_key_file => $key_file
|
class { 'magnum::wsgi::apache':
|
||||||
|
bind_host => $::openstack_integration::config::host,
|
||||||
|
ssl => $::openstack_integration::config::ssl,
|
||||||
|
ssl_key => "/etc/magnum/ssl/private/${facts['networking']['fqdn']}.pem",
|
||||||
|
ssl_cert => $::openstack_integration::params::cert_path,
|
||||||
|
workers => 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
class { 'magnum::conductor':
|
class { 'magnum::conductor':
|
||||||
|
Loading…
Reference in New Issue
Block a user