Merge "[ceph] Employ radosgw built-in frontend"

This commit is contained in:
Jenkins 2017-03-21 12:57:56 +00:00 committed by Gerrit Code Review
commit 146e9c428a
7 changed files with 11 additions and 18 deletions

View File

@ -43,7 +43,7 @@ class openstack::ha::radosgw (
internal_virtual_ip => $internal_virtual_ip,
ipaddresses => $ipaddresses,
listen_port => 8080,
balancermember_port => 6780,
balancermember_port => 7480,
public_virtual_ip => $public_virtual_ip,
server_names => $server_names,
haproxy_config_options => {

View File

@ -33,7 +33,7 @@ require 'spec_helper'
should contain_openstack__ha__haproxy_service('object-storage').with(
'order' => '130',
'listen_port' => 8080,
'balancermember_port' => 6780,
'balancermember_port' => 7480,
'public' => true,
'public_ssl' => true,
'public_ssl_path' => '/var/lib/fuel/haproxy/public_radosgw.pem',
@ -45,7 +45,7 @@ require 'spec_helper'
should contain_openstack__ha__haproxy_service('object-storage-baremetal').with(
'order' => '135',
'listen_port' => 8080,
'balancermember_port' => 6780,
'balancermember_port' => 7480,
'public_virtual_ip' => false,
'internal_virtual_ip' => '192.168.0.2',
'haproxy_config_options' => haproxy_config_opts,

View File

@ -55,7 +55,6 @@ class osnailyfacter::ceph::radosgw {
fsid => $fsid,
}
include ::tweaks::apache_wrappers
include ::ceph::params
#######################################
@ -70,7 +69,8 @@ class osnailyfacter::ceph::radosgw {
#######################################
ceph::rgw { $gateway_name:
frontend_type => 'apache-proxy-fcgi',
frontend_type => 'civetweb',
rgw_frontends => 'civetweb port=7480',
rgw_print_continue => true,
keyring_path => "/etc/ceph/client.${gateway_name}",
rgw_data => "/var/lib/ceph/radosgw-${gateway_name}",
@ -91,14 +91,6 @@ class osnailyfacter::ceph::radosgw {
ensure => directory,
}
ceph::rgw::apache_proxy_fcgi { $gateway_name:
docroot => '/var/www/radosgw',
rgw_port => '6780',
apache_purge_configs => false,
apache_purge_vhost => false,
custom_apache_ports => hiera_array('apache_ports', ['0.0.0.0:80']),
}
if ! $use_syslog {
ceph_config {
"client.${gateway_name}/log_file": value => $rgw_log_file;

View File

@ -65,7 +65,7 @@ class osnailyfacter::firewall::firewall {
$vxlan_udp_port = 4789
$ceph_mon_port = 6789
$ceph_osd_port = '6800-7100'
$radosgw_port = 6780
$radosgw_port = 7480
$corosync_networks = get_routable_networks_for_network_role($network_scheme, 'mgmt/corosync')
$memcache_networks = get_routable_networks_for_network_role($network_scheme, 'mgmt/memcache')

View File

@ -75,7 +75,8 @@ describe manifest do
it 'should contain ceph::rgw' do
should contain_ceph__rgw(gateway_name).with(
'frontend_type' => 'apache-proxy-fcgi',
'frontend_type' => 'civetweb',
'rgw_frontends' => 'civetweb port=7480',
)
end

View File

@ -304,7 +304,7 @@ describe manifest do
it 'should configure firewall' do
should contain_firewall('012 RadosGW allow').with(
'chain' => 'INPUT',
'dport' => [ '6780', '8080' ],
'dport' => [ '7480', '8080' ],
'proto' => 'tcp',
'action' => 'accept',
)

View File

@ -46,7 +46,7 @@ describe manifest do
'ipaddresses' => ipaddresses,
'server_names' => server_names,
'listen_port' => 8080,
'balancermember_port' => 6780,
'balancermember_port' => 7480,
'public' => true,
'public_ssl' => public_ssl_radosgw,
'require_service' => 'radosgw-api',
@ -63,7 +63,7 @@ describe manifest do
'ipaddresses' => ipaddresses,
'server_names' => server_names,
'listen_port' => 8080,
'balancermember_port' => 6780,
'balancermember_port' => 7480,
'public_virtual_ip' => false,
'internal_virtual_ip' => baremetal_virtual_ip,
'haproxy_config_options' => {