Merge "Use httpd+mod_wsgi to run glance-api"
This commit is contained in:
commit
6d37684f6d
@ -48,7 +48,7 @@ scenario](#all-in-one).
|
||||
| ssl | yes | yes | yes | yes | yes | no |
|
||||
| ipv6 | centos9 | centos9 | centos9 | centos9 | centos9 | no |
|
||||
| keystone | X | X | X | X | X | X |
|
||||
| glance | rbd | swift | file | swift+rgw | cinder | file |
|
||||
| glance | rbd | swift | file | rbd | cinder | file |
|
||||
| nova | rbd | X | X | rbd | X | X |
|
||||
| placement | X | X | X | X | X | X |
|
||||
| neutron | ovs | ovs | ovn | ovs | ovn | ovs |
|
||||
|
@ -56,8 +56,9 @@ include openstack_integration::mysql
|
||||
include openstack_integration::redis
|
||||
include openstack_integration::keystone
|
||||
class { 'openstack_integration::glance':
|
||||
backend => 'swift',
|
||||
backend => 'rbd',
|
||||
}
|
||||
|
||||
class { 'openstack_integration::neutron':
|
||||
vpnaas_enabled => $vpnaas_enabled,
|
||||
taas_enabled => $taas_enabled,
|
||||
@ -84,7 +85,11 @@ class { 'openstack_integration::manila':
|
||||
}
|
||||
include openstack_integration::octavia
|
||||
|
||||
include openstack_integration::provision
|
||||
class { 'openstack_integration::provision':
|
||||
# NOTE(tkajinam): Use raw format to use rbd image cloning when creating
|
||||
# a volume from an image.
|
||||
image_format => 'raw',
|
||||
}
|
||||
|
||||
# Glance, nova, neutron are true by default.
|
||||
class { 'openstack_integration::tempest':
|
||||
@ -102,4 +107,5 @@ class { 'openstack_integration::tempest':
|
||||
# RADOS Gateway does not support ResellerAdmin role by default
|
||||
reseller_admin_role => 'admin',
|
||||
swift => true,
|
||||
image_format => 'raw',
|
||||
}
|
||||
|
@ -185,6 +185,5 @@ test -b /dev/ceph_vg/lv_data
|
||||
}
|
||||
|
||||
class { 'ceph::profile::rgw': }
|
||||
Service<| tag == 'ceph-radosgw' |> -> Service <| tag == 'glance-service' |>
|
||||
}
|
||||
}
|
||||
|
@ -17,16 +17,12 @@ class openstack_integration::glance (
|
||||
include openstack_integration::config
|
||||
include openstack_integration::params
|
||||
|
||||
# TODO(tkajinam): Glance no longer supports native ssl since Ussuri release,
|
||||
# so these parameters are unused now.
|
||||
if $::openstack_integration::config::ssl {
|
||||
openstack_integration::ssl_key { 'glance':
|
||||
notify => Service['httpd'],
|
||||
require => Anchor['glance::install::end'],
|
||||
}
|
||||
$key_file = undef
|
||||
$crt_file = undef
|
||||
} else {
|
||||
$key_file = undef
|
||||
$crt_file = undef
|
||||
Exec['update-ca-certificates'] ~> Service['httpd']
|
||||
}
|
||||
|
||||
openstack_integration::mq_user { 'glance':
|
||||
@ -43,9 +39,9 @@ class openstack_integration::glance (
|
||||
include glance
|
||||
include glance::client
|
||||
class { 'glance::keystone::auth':
|
||||
public_url => "http://${::openstack_integration::config::ip_for_url}:9292",
|
||||
internal_url => "http://${::openstack_integration::config::ip_for_url}:9292",
|
||||
admin_url => "http://${::openstack_integration::config::ip_for_url}:9292",
|
||||
public_url => "${::openstack_integration::config::base_url}:9292",
|
||||
internal_url => "${::openstack_integration::config::base_url}:9292",
|
||||
admin_url => "${::openstack_integration::config::base_url}:9292",
|
||||
roles => ['admin', 'service'],
|
||||
password => 'a_big_secret',
|
||||
}
|
||||
@ -113,10 +109,17 @@ class openstack_integration::glance (
|
||||
}),
|
||||
}
|
||||
class { 'glance::api':
|
||||
workers => 2,
|
||||
enabled_backends => $enabled_backends,
|
||||
default_backend => $default_backend,
|
||||
bind_host => $::openstack_integration::config::host,
|
||||
service_name => 'httpd',
|
||||
}
|
||||
class { 'glance::wsgi::apache':
|
||||
bind_host => $::openstack_integration::config::host,
|
||||
ssl => $::openstack_integration::config::ssl,
|
||||
ssl_key => "/etc/glance/ssl/private/${facts['networking']['fqdn']}.pem",
|
||||
ssl_cert => $::openstack_integration::params::cert_path,
|
||||
workers => 2,
|
||||
}
|
||||
class { 'glance::cron::db_purge': }
|
||||
class { 'glance::cache::cleaner': }
|
||||
|
Loading…
x
Reference in New Issue
Block a user