]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fix radosgw startup on RedHat systems 266/head
authorSébastien Han <sebastien.han@enovance.com>
Wed, 3 Jun 2015 14:31:51 +0000 (16:31 +0200)
committerSébastien Han <sebastien.han@enovance.com>
Wed, 3 Jun 2015 14:31:51 +0000 (16:31 +0200)
Fix startup and move vars to group_vars

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
group_vars/all
roles/ceph-radosgw/tasks/start_radosgw.yml

index 6a3de3c995be5d8af0657fe4994138d2cc11692c..0a62d7bcbec37bc48a26cb47e39e19b669f21fd2 100644 (file)
@@ -110,6 +110,8 @@ dummy:
 #
 #radosgw: false # referenced in monitor role too.
 #radosgw_dns_name: your.subdomain.tld # subdomains used by radosgw. See http://ceph.com/docs/master/radosgw/config/#enabling-subdomain-s3-calls
+#radosgw_frontend: civetweb # supported options are 'apache' or 'civetweb', also edit roles/ceph-radosgw/defaults/main.yml
+#radosgw_civetweb_port: 80
 
 ## REST API options
 #
index 6c35995e286ee5fdb8e0e2f5499b11dfd5e94082..442072247a0039ce4c599a7d0165806af38e0ce0 100644 (file)
@@ -5,10 +5,14 @@
   register: rgwstatus
   ignore_errors: True
 
+- name: start RGW
+  command: /etc/init.d/radosgw start
+  when: rgwstatus.rc != 0 and ansible_distribution != "Ubuntu" and ansible_os_family != 'RedHat'
+
 - name: start RGW
   service: name=radosgw-all state=started
   when: ansible_distribution == "Ubuntu"
 
 - name: start RGW
-  command: /etc/init.d/radosgw start
-  when: rgwstatus.rc != 0 and ansible_distribution != "Ubuntu"
+  service: name=ceph-radosgw state=started
+  when: ansible_os_family == 'RedHat'