From: Sébastien Han Date: Wed, 3 Jun 2015 14:31:51 +0000 (+0200) Subject: Fix radosgw startup on RedHat systems X-Git-Tag: v1.0.0~216^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8ca8ecc0e1860c5c88b224e4abcb593e7331cf61;p=ceph-ansible.git Fix radosgw startup on RedHat systems Fix startup and move vars to group_vars Signed-off-by: Sébastien Han --- diff --git a/group_vars/all b/group_vars/all index 6a3de3c99..0a62d7bcb 100644 --- a/group_vars/all +++ b/group_vars/all @@ -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 # diff --git a/roles/ceph-radosgw/tasks/start_radosgw.yml b/roles/ceph-radosgw/tasks/start_radosgw.yml index 6c35995e2..442072247 100644 --- a/roles/ceph-radosgw/tasks/start_radosgw.yml +++ b/roles/ceph-radosgw/tasks/start_radosgw.yml @@ -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'