From: Alessandro Corbelli Date: Mon, 7 Apr 2014 10:06:24 +0000 (+0200) Subject: Add support for subdomain calls in S3 api. See http://ceph.com/docs/master/radosgw... X-Git-Tag: v1.0.0~365^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F65%2Fhead;p=ceph-ansible.git Add support for subdomain calls in S3 api. See http://ceph.com/docs/master/radosgw/config/#enabling-subdomain-s3-calls --- diff --git a/group_vars/all b/group_vars/all index 6e5add79c..170915cea 100644 --- a/group_vars/all +++ b/group_vars/all @@ -21,6 +21,7 @@ mds: true # disable mds configuration in ceph.conf radosgw: true redhat_distro_ceph_extra: centos6.4 # supported distros are centos6.3, centos6.4, centos6, fedora18, fedora19, opensuse12.2, rhel6.3, rhel6.4, rhel6.5, rhel6, sles11sp2 radosgw_interface: eth1 # the public interface which the radosgw talks to the world with, this variable is used in the haproxy role, this does not need to be set if haproxy is not used. +#radosgw_dns_name: your.subdomain.tld # subdomains used by radosgw. See http://ceph.com/docs/master/radosgw/config/#enabling-subdomain-s3-calls # OSD options journal_size: 100 diff --git a/roles/common/templates/ceph.conf.j2 b/roles/common/templates/ceph.conf.j2 index 138faa3e8..d7087c897 100644 --- a/roles/common/templates/ceph.conf.j2 +++ b/roles/common/templates/ceph.conf.j2 @@ -66,6 +66,9 @@ {% for host in groups['rgws'] %} {% if hostvars[host]['ansible_hostname'] is defined %} [client.radosgw.gateway] + {% if radosgw_dns_name is defined %} + rgw dns name = {{ radosgw_dns_name }} + {% endif %} host = {{ hostvars[host]['ansible_hostname'] }} keyring = /etc/ceph/keyring.radosgw.gateway rgw socket path = /tmp/radosgw.sock