Merge pull request #266 from leseb/fix-rgw-start-rh

Fix radosgw startup on RedHat systems
pull/267/head
Leseb 2015-06-03 16:33:24 +02:00
commit a86439f2d2
2 changed files with 8 additions and 2 deletions

View File

@ -110,6 +110,8 @@ dummy:
# #
#radosgw: false # referenced in monitor role too. #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_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 ## REST API options
# #

View File

@ -5,10 +5,14 @@
register: rgwstatus register: rgwstatus
ignore_errors: True 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 - name: start RGW
service: name=radosgw-all state=started service: name=radosgw-all state=started
when: ansible_distribution == "Ubuntu" when: ansible_distribution == "Ubuntu"
- name: start RGW - name: start RGW
command: /etc/init.d/radosgw start service: name=ceph-radosgw state=started
when: rgwstatus.rc != 0 and ansible_distribution != "Ubuntu" when: ansible_os_family == 'RedHat'