Skip to content

Commit 0dfaa1b

Browse files
authored
Merge pull request #68 from stackhpc/rgw
Improve RADOS GW support
2 parents 2c73cf6 + fa097d2 commit 0dfaa1b

File tree

3 files changed

+30
-11
lines changed

3 files changed

+30
-11
lines changed

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace: "stackhpc"
22
name: "cephadm"
3-
version: "1.9.0"
3+
version: "1.10.0"
44
readme: "README.md"
55
authors:
66
- "Michal Nasiadka"

roles/cephadm/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,21 @@ All Ceph hosts must be in the `ceph` group.
6868
db_devices:
6969
model: Dell Express Flash PM1725b 1.6TB SFF
7070
```
71+
* RGWs
72+
* `cephadm_radosgw_services`: List of Rados Gateways services to deploy. `id` is an arbitrary name for the service,
73+
`count_per_host` is desired number of RGW services per host. `spec` is optional additional service specification.
74+
Previously undocumented `port` variable is no longer supported.
75+
Example:
76+
```
77+
cephadm_radosgw_services:
78+
- id: myrgw
79+
count_per_host: 2
80+
spec:
81+
rgw_realm: myrealm
82+
rgw_zone: myzone
83+
rgw_frontend_port: 1234
84+
```
85+
Note that adding RGW or other services to an existing deployment requires setting `cephadm_bootstrap` variable to *True*.
7186
7287
* Registry
7388
* `cephadm_registry_url`: (default: not used)

roles/cephadm/templates/cluster.yml.j2

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,29 @@ hostname: {{ hostvars[host].ansible_facts.hostname }}
55
addr: {{ hostvars[host].ansible_facts[cephadm_admin_interface]['ipv4']['address'] }}
66
labels:
77
{% if host in groups['mons'] %}
8-
- _admin
9-
- mon
8+
- _admin
9+
- mon
1010
{% endif %}
1111
{% if host in groups['mgrs'] %}
12-
- mgr
12+
- mgr
1313
{% endif %}
1414
{% if host in groups['osds'] %}
15-
- osd
15+
- osd
1616
{% endif %}
1717
{% if host in groups.get('rgws', []) %}
18-
- rgw
18+
- rgw
1919
{% endif %}
2020
{% endfor %}
2121
---
2222
service_type: mon
2323
placement:
2424
count: {{ cephadm_mon_count }}
25-
label: "mon"
25+
label: mon
2626
---
2727
service_type: mgr
2828
placement:
2929
count: {{ cephadm_mgr_count }}
30-
label: "mgr"
30+
label: mgr
3131
---
3232
service_type: crash
3333
placement:
@@ -38,9 +38,13 @@ placement:
3838
service_type: rgw
3939
service_id: {{ service.id }}
4040
placement:
41-
label: "rgw"
42-
{% if service.port is defined %}
43-
rgw_frontend_port: {{ service.port }}
41+
label: rgw
42+
{% if service.count_per_host is defined %}
43+
count_per_host: {{ service.count_per_host }}
44+
{% endif %}
45+
{% if service.spec is defined %}
46+
spec:
47+
{{ service.spec | to_nice_yaml }}
4448
{% endif %}
4549
{% endfor %}
4650
{% endif %}

0 commit comments

Comments
 (0)