Trove: Use httpd+mod_wsgi to run trove-api
Currently httpd + mod_wsgi is globally used to run api services instead of standalone eventlet service. This ensures we use this method to deploy trove-api. Depends-on: https://review.opendev.org/c/openstack/puppet-trove/+/874531 Change-Id: I35dd3acb487618eb8ad0dd7710b02f5a4d98b672
This commit is contained in:
parent
fe75d23e76
commit
7115e28f92
@ -10,15 +10,10 @@ class openstack_integration::trove {
|
|||||||
|
|
||||||
if $::openstack_integration::config::ssl {
|
if $::openstack_integration::config::ssl {
|
||||||
openstack_integration::ssl_key { 'trove':
|
openstack_integration::ssl_key { 'trove':
|
||||||
|
notify => Service['httpd'],
|
||||||
require => Package['trove'],
|
require => Package['trove'],
|
||||||
}
|
}
|
||||||
$key_file = "/etc/trove/ssl/private/${::fqdn}.pem"
|
Exec['update-ca-certificates'] ~> Service['httpd']
|
||||||
$crt_file = $::openstack_integration::params::cert_path
|
|
||||||
File[$key_file] ~> Service<| tag == 'trove-service' |>
|
|
||||||
Exec['update-ca-certificates'] ~> Service<| tag == 'trove-service' |>
|
|
||||||
} else {
|
|
||||||
$key_file = undef
|
|
||||||
$crt_file = undef
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class { 'trove::logging':
|
class { 'trove::logging':
|
||||||
@ -68,11 +63,17 @@ class openstack_integration::trove {
|
|||||||
password => 'a_big_secret',
|
password => 'a_big_secret',
|
||||||
auth_url => $::openstack_integration::config::keystone_auth_uri,
|
auth_url => $::openstack_integration::config::keystone_auth_uri,
|
||||||
}
|
}
|
||||||
|
include apache
|
||||||
|
class { 'trove::wsgi::apache':
|
||||||
|
bind_host => $::openstack_integration::config::host,
|
||||||
|
ssl => $::openstack_integration::config::ssl,
|
||||||
|
ssl_key => "/etc/trove/ssl/private/${::fqdn}.pem",
|
||||||
|
ssl_cert => $::openstack_integration::params::cert_path,
|
||||||
|
workers => 2,
|
||||||
|
}
|
||||||
class { 'trove::api':
|
class { 'trove::api':
|
||||||
bind_host => $::openstack_integration::config::host,
|
bind_host => $::openstack_integration::config::host,
|
||||||
workers => 2,
|
service_name => 'httpd',
|
||||||
cert_file => $crt_file,
|
|
||||||
key_file => $key_file,
|
|
||||||
}
|
}
|
||||||
class { 'trove::client': }
|
class { 'trove::client': }
|
||||||
class { 'trove::conductor':
|
class { 'trove::conductor':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user