File tree Expand file tree Collapse file tree 3 files changed +30
-11
lines changed Expand file tree Collapse file tree 3 files changed +30
-11
lines changed Original file line number Diff line number Diff line change 11namespace : " stackhpc"
22name : " cephadm"
3- version : " 1.9 .0"
3+ version : " 1.10 .0"
44readme : " README.md"
55authors :
66 - " Michal Nasiadka"
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff line change @@ -5,29 +5,29 @@ hostname: {{ hostvars[host].ansible_facts.hostname }}
55addr: {{ hostvars[host] .ansible_facts[cephadm_admin_interface] ['ipv4'] ['address'] }}
66labels:
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---
2222service_type: mon
2323placement:
2424 count: {{ cephadm_mon_count }}
25- label: " mon"
25+ label: mon
2626---
2727service_type: mgr
2828placement:
2929 count: {{ cephadm_mgr_count }}
30- label: " mgr"
30+ label: mgr
3131---
3232service_type: crash
3333placement:
@@ -38,9 +38,13 @@ placement:
3838service_type: rgw
3939service_id: {{ service.id }}
4040placement:
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 %}
You can’t perform that action at this time.
0 commit comments