From 61ab4451288d6454cf45f309c40f26c04feccab0 Mon Sep 17 00:00:00 2001 From: Alessandro Corbelli Date: Mon, 7 Apr 2014 12:06:24 +0200 Subject: [PATCH] Add support for subdomain calls in S3 api. See http://ceph.com/docs/master/radosgw/config/#enabling-subdomain-s3-calls --- group_vars/all | 1 + roles/common/templates/ceph.conf.j2 | 3 +++ 2 files changed, 4 insertions(+) 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 -- 2.39.5