From 8ca8ecc0e1860c5c88b224e4abcb593e7331cf61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Wed, 3 Jun 2015 16:31:51 +0200 Subject: [PATCH] Fix radosgw startup on RedHat systems MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix startup and move vars to group_vars Signed-off-by: Sébastien Han --- group_vars/all | 2 ++ roles/ceph-radosgw/tasks/start_radosgw.yml | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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'