From 4941de838c7fe6f998d1c65f699a4cd6194cea28 Mon Sep 17 00:00:00 2001 From: Logan V Date: Mon, 16 Jan 2017 08:27:44 -0600 Subject: [PATCH] RGW: Add static website hosting configuration --- group_vars/all.yml.sample | 3 +++ roles/ceph-common/defaults/main.yml | 3 +++ roles/ceph-common/templates/ceph.conf.j2 | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/group_vars/all.yml.sample b/group_vars/all.yml.sample index 70a8af188..173f5e543 100644 --- a/group_vars/all.yml.sample +++ b/group_vars/all.yml.sample @@ -319,6 +319,9 @@ dummy: #radosgw_usage_log_flush_threshold: 1024 #radosgw_usage_max_shards: 32 #radosgw_usage_max_user_shards: 1 +# Settings for static website hosting +#radosgw_static_website: false +#radosgw_dns_s3website_name: your.subdomain.tld # subdomain used by radosgw for website bucket hosting. # Rados Gateway options #email_address: foo@bar.com diff --git a/roles/ceph-common/defaults/main.yml b/roles/ceph-common/defaults/main.yml index bc06d1793..b2a283186 100644 --- a/roles/ceph-common/defaults/main.yml +++ b/roles/ceph-common/defaults/main.yml @@ -311,6 +311,9 @@ radosgw_usage_log_tick_interval: 30 radosgw_usage_log_flush_threshold: 1024 radosgw_usage_max_shards: 32 radosgw_usage_max_user_shards: 1 +# Settings for static website hosting +radosgw_static_website: false +radosgw_dns_s3website_name: your.subdomain.tld # subdomain used by radosgw for website bucket hosting. # Rados Gateway options email_address: foo@bar.com diff --git a/roles/ceph-common/templates/ceph.conf.j2 b/roles/ceph-common/templates/ceph.conf.j2 index b27d78fc9..e577351bf 100644 --- a/roles/ceph-common/templates/ceph.conf.j2 +++ b/roles/ceph-common/templates/ceph.conf.j2 @@ -138,6 +138,10 @@ rgw usage log flush threshold = {{ radosgw_usage_log_flush_threshold }} rgw usage max shards = {{ radosgw_usage_max_shards }} rgw usage max user shards = {{ radosgw_usage_max_user_shards }} {% endif %} +{% if radosgw_static_website | bool %} +rgw enable static website = {{ radosgw_static_website }} +rgw dns s3website name = {{ radosgw_dns_s3website_name }} +{% endif %} {% endif %} {% endfor %} {% endif %} -- 2.39.5