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
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace: "stackhpc"
name: "cephadm"
version: "1.9.0"
version: "1.10.0"
readme: "README.md"
authors:
- "Michal Nasiadka"
Expand Down
15 changes: 15 additions & 0 deletions roles/cephadm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,21 @@ All Ceph hosts must be in the `ceph` group.
db_devices:
model: Dell Express Flash PM1725b 1.6TB SFF
```
* 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.
Example:
```
cephadm_radosgw_services:
- id: myrgw
count_per_host: 2
spec:
rgw_realm: myrealm
rgw_zone: myzone
rgw_frontend_port: 1234
```
Note that adding RGW or other services to an existing deployment requires setting `cephadm_bootstrap` variable to *True*.

* Registry
* `cephadm_registry_url`: (default: not used)
Expand Down
24 changes: 14 additions & 10 deletions roles/cephadm/templates/cluster.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,29 @@ hostname: {{ hostvars[host].ansible_facts.hostname }}
addr: {{ hostvars[host].ansible_facts[cephadm_admin_interface]['ipv4']['address'] }}
labels:
{% if host in groups['mons'] %}
- _admin
- mon
- _admin
- mon
{% endif %}
{% if host in groups['mgrs'] %}
- mgr
- mgr
{% endif %}
{% if host in groups['osds'] %}
- osd
- osd
{% endif %}
{% if host in groups.get('rgws', []) %}
- rgw
- rgw
{% endif %}
{% endfor %}
---
service_type: mon
placement:
count: {{ cephadm_mon_count }}
label: "mon"
label: mon
---
service_type: mgr
placement:
count: {{ cephadm_mgr_count }}
label: "mgr"
label: mgr
---
service_type: crash
placement:
Expand All @@ -38,9 +38,13 @@ placement:
service_type: rgw
service_id: {{ service.id }}
placement:
label: "rgw"
{% if service.port is defined %}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not backwards compatible, and will break anyone using port.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed with @mnasiadka, nobody was using it; it's mentioned in the Readme too.

rgw_frontend_port: {{ service.port }}
label: rgw
{% if service.count_per_host is defined %}
count_per_host: {{ service.count_per_host }}
{% endif %}
{% if service.spec is defined %}
spec:
{{ service.spec | to_nice_yaml }}
{% endif %}
{% endfor %}
{% endif %}