Fixes: #217
Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
+++ /dev/null
-#!/bin/sh
-exec /usr/bin/radosgw -c /etc/ceph/ceph.conf -n client.radosgw.gateway
- restart apache2
- name: Install s3gw.fcgi script
- copy: >
- src=s3gw.fcgi
+ template: >
+ src=s3gw.fcgi.j2
dest=/var/www/s3gw.fcgi
mode=0555
owner=root
mode=0644
- name: Install s3gw.fcgi script
- copy: >
- src=s3gw.fcgi
+ template: >
+ src=s3gw.fcgi.j2
dest=/var/www/s3gw.fcgi
mode=0555
owner=root
# {{ ansible_managed }}
-FastCgiExternalServer /var/www/s3gw.fcgi -socket /tmp/radosgw.sock
+FastCgiExternalServer /var/www/s3gw.fcgi -socket /tmp/radosgw-{{ ansible_hostname }}.sock
<VirtualHost *:80>
ServerName {{ ansible_hostname }}
ServerAdmin {{ email_address }}@{{ ansible_fqdn }}
--- /dev/null
+# {{ ansible_managed }}
+#!/bin/sh
+exec /usr/bin/radosgw -c /etc/ceph/ceph.conf -n client.radosgw.{{ ansible_hostname }}