Skip to content

Commit 5ef0797

Browse files
authored
Merge pull request #102 from stackhpc/rgw-networks
Add support for specifying RGW networks
2 parents 37330ec + 466dc44 commit 5ef0797

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

roles/cephadm/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,15 @@ All Ceph hosts must be in the `ceph` group.
7373
```
7474
* RGWs
7575
* `cephadm_radosgw_services`: List of Rados Gateways services to deploy. `id` is an arbitrary name for the service,
76-
`count_per_host` is desired number of RGW services per host. `spec` is optional additional service specification.
77-
Previously undocumented `port` variable is no longer supported.
76+
`count_per_host` is desired number of RGW services per host. `networks` is optional list of networks to bind to.
77+
`spec` is optional additional service specification. Previously undocumented `port` variable is no longer supported.
7878
Example:
7979
```
8080
cephadm_radosgw_services:
8181
- id: myrgw
8282
count_per_host: 2
83+
networks:
84+
- 10.66.0.0/24
8385
spec:
8486
rgw_realm: myrealm
8587
rgw_zone: myzone

roles/cephadm/templates/cluster.yml.j2

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ placement:
4949
{% if service.count_per_host is defined %}
5050
count_per_host: {{ service.count_per_host }}
5151
{% endif %}
52+
{% if service.networks is defined %}
53+
{% if service.networks is string %}
54+
networks:
55+
- "{{ service.networks }}"
56+
{% else %}
57+
networks:
58+
{{ service.networks | to_nice_yaml }}
59+
{% endif %}
60+
{% endif %}
5261
{% if service.spec is defined %}
5362
spec:
5463
{{ service.spec | to_nice_yaml }}

0 commit comments

Comments
 (0)