]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Common: Add profiles
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 2 Jun 2017 08:10:03 +0000 (10:10 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 19 Jul 2017 09:50:03 +0000 (11:50 +0200)
Remove `rgw enable static website` and `rgw enable usage log` from
ceph.conf and make it usable with ceph_config_overrides as profiles.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
profiles/rgw-keystone-v2
profiles/rgw-keystone-v3
profiles/rgw-radosgw-static-website [new file with mode: 0644]
profiles/rgw-usage-log [new file with mode: 0644]
roles/ceph-common/templates/ceph.conf.j2

index 5415dc000d63465ccc22093e76d9b759b860a83c..6ba9fcf43b2acbc6288f56848a3c46553ba99be4 100644 (file)
@@ -2,7 +2,7 @@
 # THIS FILE IS AN EXAMPLE THAT CONTAINS A SET OF VARIABLE FOR A PARTICULAR PURPOSE
 # GOAL: CONFIGURE RADOS GATEWAY WITH KEYSTONE V2
 #
-# The following variables should be added in your group_vars/rgws file
+# The following variables should be added in your group_vars/rgws.yml file
 # The double quotes are important, do NOT remove them.
 
 
index 4635d9130b11b7ecedef64e10b1e4073f30316cb..1044e6d446c26f60518b23070156ac0af2c9ecb3 100644 (file)
@@ -2,7 +2,7 @@
 # THIS FILE IS AN EXAMPLE THAT CONTAINS A SET OF VARIABLE FOR A PARTICULAR PURPOSE
 # GOAL: CONFIGURE RADOS GATEWAY WITH KEYSTONE V3
 #
-# The following variables should be added in your group_vars/rgws file
+# The following variables should be added in your group_vars/rgws.yml file
 # The double quotes are important, do NOT remove them.
 
 
diff --git a/profiles/rgw-radosgw-static-website b/profiles/rgw-radosgw-static-website
new file mode 100644 (file)
index 0000000..cf2dd23
--- /dev/null
@@ -0,0 +1,11 @@
+---
+# THIS FILE IS AN EXAMPLE THAT CONTAINS A SET OF VARIABLE FOR A PARTICULAR PURPOSE
+# GOAL: CONFIGURE RADOS GATEWAY WITH STATIC WEBSITE
+#
+# The following variables should be added in your group_vars/rgws.yml file
+# The double quotes are important, do NOT remove them.
+
+ceph_conf_overrides:
+  "client.rgw.{{ hostvars[inventory_hostname]['ansible_hostname'] }}":
+    rgw enable static website = true
+    rgw dns s3website name = objects-website-region.domain.com
diff --git a/profiles/rgw-usage-log b/profiles/rgw-usage-log
new file mode 100644 (file)
index 0000000..4064528
--- /dev/null
@@ -0,0 +1,15 @@
+---
+# THIS FILE IS AN EXAMPLE THAT CONTAINS A SET OF VARIABLE FOR A PARTICULAR PURPOSE
+# GOAL: CONFIGURE RADOS GATEWAY WITH USAGE LOG
+#
+# The following variables should be added in your group_vars/rgws.yml file
+# The double quotes are important, do NOT remove them.
+
+ceph_conf_overrides:
+  "client.rgw.{{ hostvars[inventory_hostname]['ansible_hostname'] }}":
+    rgw enable usage log = true
+    rgw usage log tick interval = 30
+    rgw usage log flush threshold = 1024
+    rgw usage max shards = 32
+    rgw usage max user shards = 1
+
index 1179c428a4eaf412147a240c1827c1dd208dd6c0..93440fc14d4aebca88ebe7f7fb95b76496ae3476 100644 (file)
@@ -134,17 +134,6 @@ log file = /var/log/ceph/{{ cluster }}-rgw-{{ hostvars[host]['ansible_hostname']
 rgw data = /var/lib/ceph/radosgw/{{ cluster }}-rgw.{{ hostvars[host]['ansible_hostname'] }}
 rgw frontends = civetweb port={{ radosgw_civetweb_bind_ip }}:{{ radosgw_civetweb_port }} num_threads={{ radosgw_civetweb_num_threads }}
 {% endif %}
-{% if radosgw_usage_log | bool %}
-rgw enable usage log = true
-rgw usage log tick interval = {{ radosgw_usage_log_tick_interval }}
-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 %}
 {% endfor %}
 {% endif %}