Skip to content

Commit

Permalink
Support civetweb rgw frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Ács Sándor committed Jul 31, 2015
1 parent a187a02 commit 3728017
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -126,7 +126,7 @@ Ceph Rados Gateway nodes should use the ceph-radosgw role
* `node['ceph']['radosgw']['admin_email']` - the admin email address to configure in the web server
* `node['ceph']['radosgw']['rgw_addr']` - the web server's bind address, such as *:80
* `node['ceph']['radosgw']['rgw_port']` - if set, connects to the radosgw fastcgi over this port instead of a unix socket
* `node['ceph']['radosgw']['webserver_companion']` - defaults to 'apache2', but can be set to false to not configure anything
* `node['ceph']['radosgw']['webserver_companion']` - defaults to 'apache2', but it can be set to 'civetweb', or to false in order to leave it unconfigured
* `node['ceph']['radosgw']['path']` - where to save the s3gw.fcgi file
* `node['ceph']['config']['global']['rgw dns name']` - the main domain of the radosgw daemon, to calculate the bucket name from a subdomain

Expand Down
2 changes: 1 addition & 1 deletion attributes/radosgw.rb
Expand Up @@ -23,7 +23,7 @@
default['ceph']['radosgw']['admin_email'] = 'admin@example.com'
default['ceph']['radosgw']['rgw_addr'] = '*:80'
default['ceph']['radosgw']['rgw_port'] = false
default['ceph']['radosgw']['webserver_companion'] = 'apache2' # can be false
default['ceph']['radosgw']['webserver_companion'] = 'apache2' # can be civetweb or false
default['ceph']['radosgw']['use_apache_fork'] = true
default['ceph']['radosgw']['init_style'] = node['ceph']['init_style']

Expand Down
1 change: 1 addition & 0 deletions recipes/radosgw_civetweb.rb
@@ -0,0 +1 @@
# Civetweb has no dependencies. It is included since the Firefly release.
7 changes: 7 additions & 0 deletions templates/default/ceph.conf.erb
Expand Up @@ -35,6 +35,13 @@
<% if (@is_rgw) -%>
[client.radosgw.<%= node['hostname'] %>]
<% if node['ceph']['radosgw']['webserver_companion'] == 'civetweb' -%>
<% if node['ceph']['radosgw']['rgw_port'] == false %>
rgw frontends = "civetweb port=80"
<% else -%>
rgw frontends = "civetweb port=<%=node['ceph']['radosgw']['rgw_port']%>"
<% end -%>
<% end -%>
host = <%= node['hostname'] %>
rgw socket path = /var/run/ceph-radosgw/radosgw.<%= node['hostname'] %>
admin socket = /var/run/ceph-radosgw/ceph-client.radosgw.<%= node['hostname'] %>.asok
Expand Down

0 comments on commit 3728017

Please sign in to comment.