mirror of https://github.com/ceph/ceph-ansible.git
docs: rgw multisite docs with new rgw_instances config
Docs reflect that each instance of `rgw_instances` can now take rgw_zonemaster, rgw_zonesecondary, rgw_zonegroupmaster, rgw_multisite_proto. Signed-off-by: Ali Maredia <amaredia@redhat.com>wip-pr-6207-docs-update
parent
a9c9464ff5
commit
037b3a42ae
|
@ -449,11 +449,15 @@ Here is an example:
|
||||||
```yaml
|
```yaml
|
||||||
rgw_instances:
|
rgw_instances:
|
||||||
- instance_name: rgw1
|
- instance_name: rgw1
|
||||||
|
rgw_zonemaster: true
|
||||||
|
rgw_zonesecondary: false
|
||||||
|
rgw_zonegroupmaster: true
|
||||||
rgw_realm: usa
|
rgw_realm: usa
|
||||||
rgw_zonegroup: alaska
|
rgw_zonegroup: alaska
|
||||||
rgw_zone: juneau
|
rgw_zone: juneau
|
||||||
radosgw_address: "{{ _radosgw_address }}"
|
radosgw_address: "{{ _radosgw_address }}"
|
||||||
radosgw_frontend_port: 8080
|
radosgw_frontend_port: 8080
|
||||||
|
rgw_multisite_proto: http
|
||||||
rgw_zone_user: edward.lewis
|
rgw_zone_user: edward.lewis
|
||||||
rgw_zone_user_display_name: "Edward Lewis"
|
rgw_zone_user_display_name: "Edward Lewis"
|
||||||
system_access_key: yu17wkvAx3B8Wyn08XoF
|
system_access_key: yu17wkvAx3B8Wyn08XoF
|
||||||
|
@ -465,27 +469,31 @@ rgw_instances:
|
||||||
Here is an example of a host_vars for a host (ex: rgw-001 in the examples) containing 2 rgw_instances:
|
Here is an example of a host_vars for a host (ex: rgw-001 in the examples) containing 2 rgw_instances:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
rgw_zonemaster: true
|
|
||||||
rgw_zonesecondary: false
|
|
||||||
rgw_zonegroupmaster: true
|
|
||||||
rgw_multisite_proto: http
|
|
||||||
rgw_instances:
|
rgw_instances:
|
||||||
- instance_name: rgw1
|
- instance_name: rgw1
|
||||||
|
rgw_zonemaster: true
|
||||||
|
rgw_zonesecondary: false
|
||||||
|
rgw_zonegroupmaster: true
|
||||||
rgw_realm: usa
|
rgw_realm: usa
|
||||||
rgw_zonegroup: alaska
|
rgw_zonegroup: alaska
|
||||||
rgw_zone: juneau
|
rgw_zone: juneau
|
||||||
radosgw_address: "{{ _radosgw_address }}"
|
radosgw_address: "{{ _radosgw_address }}"
|
||||||
radosgw_frontend_port: 8080
|
radosgw_frontend_port: 8080
|
||||||
|
rgw_multisite_proto: http
|
||||||
rgw_zone_user: edward.lewis
|
rgw_zone_user: edward.lewis
|
||||||
rgw_zone_user_display_name: "Edward Lewis"
|
rgw_zone_user_display_name: "Edward Lewis"
|
||||||
system_access_key: yu17wkvAx3B8Wyn08XoF
|
system_access_key: yu17wkvAx3B8Wyn08XoF
|
||||||
system_secret_key: 5YZfaSUPqxSNIkZQQA3lBZ495hnIV6k2HAz710BY
|
system_secret_key: 5YZfaSUPqxSNIkZQQA3lBZ495hnIV6k2HAz710BY
|
||||||
- instance_name: rgw2
|
- instance_name: rgw2
|
||||||
|
rgw_zonemaster: true
|
||||||
|
rgw_zonesecondary: false
|
||||||
|
rgw_zonegroupmaster: true
|
||||||
rgw_realm: france
|
rgw_realm: france
|
||||||
rgw_zonegroup: idf
|
rgw_zonegroup: idf
|
||||||
rgw_zone: paris
|
rgw_zone: paris
|
||||||
radosgw_address: "{{ _radosgw_address }}"
|
radosgw_address: "{{ _radosgw_address }}"
|
||||||
radosgw_frontend_port: 8081
|
radosgw_frontend_port: 8081
|
||||||
|
rgw_multisite_proto: http
|
||||||
rgw_zone_user: jacques.chirac
|
rgw_zone_user: jacques.chirac
|
||||||
rgw_zone_user_display_name: "Jacques Chirac"
|
rgw_zone_user_display_name: "Jacques Chirac"
|
||||||
system_access_key: P9Eb6S8XNyo4dtZZUUMy
|
system_access_key: P9Eb6S8XNyo4dtZZUUMy
|
||||||
|
@ -494,8 +502,6 @@ rgw_instances:
|
||||||
|
|
||||||
This example starts up 2 rgws on host rgw-001. `rgw1` is configured to be in realm usa and `rgw2` is configured to be in realm france.
|
This example starts up 2 rgws on host rgw-001. `rgw1` is configured to be in realm usa and `rgw2` is configured to be in realm france.
|
||||||
|
|
||||||
The variables `rgw_zonemaster`, `rgw_zonesecondary`, `rgw_zonegroupmaster`, `rgw_multisite_proto` cannot be set in an item of rgw_instances. All of these variables must be set in group_vars/ or host_vars/.
|
|
||||||
|
|
||||||
### Setting rgw_instances for a host in a secondary zone
|
### Setting rgw_instances for a host in a secondary zone
|
||||||
|
|
||||||
To start up multiple rgws on a host that are in a secondary zone, `endpoint` must be added to rgw_instances.
|
To start up multiple rgws on a host that are in a secondary zone, `endpoint` must be added to rgw_instances.
|
||||||
|
@ -505,28 +511,32 @@ The value of `endpoint` should be the endpoint of an RGW in the master zone of t
|
||||||
Here is an example of a host_vars for a host containing 2 rgw_instances in a secondary zone:
|
Here is an example of a host_vars for a host containing 2 rgw_instances in a secondary zone:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
rgw_zonemaster: false
|
|
||||||
rgw_zonesecondary: true
|
|
||||||
rgw_zonegroupmaster: true
|
|
||||||
rgw_multisite_proto: "http"
|
|
||||||
rgw_instances:
|
rgw_instances:
|
||||||
- instance_name: rgw3
|
- instance_name: rgw3
|
||||||
|
rgw_zonemaster: false
|
||||||
|
rgw_zonesecondary: true
|
||||||
|
rgw_zonegroupmaster: true
|
||||||
rgw_realm: usa
|
rgw_realm: usa
|
||||||
rgw_zonegroup: alaska
|
rgw_zonegroup: alaska
|
||||||
rgw_zone: fairbanks
|
rgw_zone: fairbanks
|
||||||
radosgw_address: "{{ _radosgw_address }}"
|
radosgw_address: "{{ _radosgw_address }}"
|
||||||
radosgw_frontend_port: 8080
|
radosgw_frontend_port: 8080
|
||||||
|
rgw_multisite_proto: "http"
|
||||||
rgw_zone_user: edward.lewis
|
rgw_zone_user: edward.lewis
|
||||||
rgw_zone_user_display_name: "Edward Lewis"
|
rgw_zone_user_display_name: "Edward Lewis"
|
||||||
system_access_key: yu17wkvAx3B8Wyn08XoF
|
system_access_key: yu17wkvAx3B8Wyn08XoF
|
||||||
system_secret_key: 5YZfaSUPqxSNIkZQQA3lBZ495hnIV6k2HAz710BY
|
system_secret_key: 5YZfaSUPqxSNIkZQQA3lBZ495hnIV6k2HAz710BY
|
||||||
endpoint: https://rgw-001-hostname:8080
|
endpoint: https://rgw-001-hostname:8080
|
||||||
- instance_name: rgw4
|
- instance_name: rgw4
|
||||||
|
rgw_zonemaster: false
|
||||||
|
rgw_zonesecondary: true
|
||||||
|
rgw_zonegroupmaster: true
|
||||||
rgw_realm: france
|
rgw_realm: france
|
||||||
rgw_zonegroup: idf
|
rgw_zonegroup: idf
|
||||||
rgw_zone: versailles
|
rgw_zone: versailles
|
||||||
radosgw_address: "{{ _radosgw_address }}"
|
radosgw_address: "{{ _radosgw_address }}"
|
||||||
radosgw_frontend_port: 8081
|
radosgw_frontend_port: 8081
|
||||||
|
rgw_multisite_proto: "http"
|
||||||
rgw_zone_user: jacques.chirac
|
rgw_zone_user: jacques.chirac
|
||||||
rgw_zone_user_display_name: "Jacques Chirac"
|
rgw_zone_user_display_name: "Jacques Chirac"
|
||||||
system_access_key: P9Eb6S8XNyo4dtZZUUMy
|
system_access_key: P9Eb6S8XNyo4dtZZUUMy
|
||||||
|
@ -536,8 +546,6 @@ rgw_instances:
|
||||||
|
|
||||||
This example starts up 2 rgws on the host that will pull the realm from the rgws on rgw-001 above. `rgw3` is pulling from the rgw endpoint in realm usa in the master zone example above (instance name rgw1). `rgw4` is pulling from the rgw endpoint in realm france in the master zone example above (instance name rgw2).
|
This example starts up 2 rgws on the host that will pull the realm from the rgws on rgw-001 above. `rgw3` is pulling from the rgw endpoint in realm usa in the master zone example above (instance name rgw1). `rgw4` is pulling from the rgw endpoint in realm france in the master zone example above (instance name rgw2).
|
||||||
|
|
||||||
Just like the example on the master zone, the variables `rgw_zonemaster`, `rgw_zonesecondary`, `rgw_zonegroupmaster`, `rgw_multisite_proto` cannot be set in an item of rgw_instances. All of these variables must be set in group_vars/ or host_vars/.
|
|
||||||
|
|
||||||
### Conclusion
|
### Conclusion
|
||||||
|
|
||||||
`rgw_instances` can be used in host_vars for multisite deployments like scenarios 2 and 3
|
`rgw_instances` can be used in host_vars for multisite deployments like scenarios 2 and 3
|
||||||
|
|
Loading…
Reference in New Issue