Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions roles/cephadm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,15 @@ All Ceph hosts must be in the `ceph` group.
```
* RGWs
* `cephadm_radosgw_services`: List of Rados Gateways services to deploy. `id` is an arbitrary name for the service,
`count_per_host` is desired number of RGW services per host. `spec` is optional additional service specification.
Previously undocumented `port` variable is no longer supported.
`count_per_host` is desired number of RGW services per host. `networks` is optional list of networks to bind to.
`spec` is optional additional service specification. Previously undocumented `port` variable is no longer supported.
Example:
```
cephadm_radosgw_services:
- id: myrgw
count_per_host: 2
networks:
- 10.66.0.0/24
spec:
rgw_realm: myrealm
rgw_zone: myzone
Expand Down
9 changes: 9 additions & 0 deletions roles/cephadm/templates/cluster.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ placement:
{% if service.count_per_host is defined %}
count_per_host: {{ service.count_per_host }}
{% endif %}
{% if service.networks is defined %}
{% if service.networks is string %}
networks:
- "{{ service.networks }}"
{% else %}
networks:
{{ service.networks | to_nice_yaml }}
{% endif %}
{% endif %}
{% if service.spec is defined %}
spec:
{{ service.spec | to_nice_yaml }}
Expand Down