mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #266 from leseb/fix-rgw-start-rh
Fix radosgw startup on RedHat systemspull/267/head
commit
a86439f2d2
|
@ -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
|
||||||
#
|
#
|
||||||
|
|
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue