From: Guilhem Lettron Date: Tue, 26 Feb 2013 11:42:00 +0000 (+0100) Subject: manage rgw_port on radosgw recipe X-Git-Tag: v0.2.0~40^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F14%2Fhead;p=ceph-cookbooks.git manage rgw_port on radosgw recipe --- diff --git a/attributes/radosgw.rb b/attributes/radosgw.rb index 0abf179..36aea39 100644 --- a/attributes/radosgw.rb +++ b/attributes/radosgw.rb @@ -19,4 +19,4 @@ default["ceph"]["radosgw"]["api_fqdn"] = "localhost" default["ceph"]["radosgw"]["admin_email"] = "admin@example.com" default["ceph"]["radosgw"]["rgw_addr"] = "*:80" - +default["ceph"]["radosgw"]["rgw_port"] = false diff --git a/templates/default/rgw.conf.erb b/templates/default/rgw.conf.erb index 11fb8f2..9a22c7a 100644 --- a/templates/default/rgw.conf.erb +++ b/templates/default/rgw.conf.erb @@ -1,4 +1,8 @@ +<% if node['ceph']['radosgw']['rgw_port'] -%> +FastCgiExternalServer /var/www/dummyradosgw.fcgi -host 127.0.0.1:<%= node['ceph']['radosgw']['rgw_port'] %> +<% else -%> FastCgiExternalServer /var/www/dummyradosgw.fcgi -socket /var/run/ceph/radosgw.client.radosgw.<%= node[:hostname] %> +<% end -%> LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" proxy_combined LogFormat "%{X-Forwarded-For}i %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" proxy_debug