|
126 | 126 | --url {{ cifmw_cephadm_urischeme }}://{{ ( |
127 | 127 | cifmw_external_dns_vip_ext.values() | first |
128 | 128 | if cifmw_external_dns_vip_ext is defined |
129 | | - else cifmw_cephadm_rgw_vip | ansible.utils.ipaddr('address') |
130 | | - ) }}:8080/swift/v1/AUTH_%\(tenant_id\)s \ |
| 129 | + else _cephadm_rgw_vip | ansible.utils.ipaddr('address') |
| 130 | + ) }}:{{ cifmw_cephadm_rgw_port }}/swift/v1/AUTH_%\(tenant_id\)s \ |
131 | 131 | {{ uuid_swift_public_ep.stdout }} |
132 | 132 | oc -n {{ cifmw_cephadm_ns }} rsh openstackclient \ |
133 | 133 | openstack endpoint set \ |
134 | 134 | --url {{ cifmw_cephadm_urischeme }}://{{ ( |
135 | 135 | cifmw_external_dns_vip_int.values() | first |
136 | 136 | if cifmw_external_dns_vip_int is defined |
137 | | - else cifmw_cephadm_rgw_vip | ansible.utils.ipaddr('address') |
138 | | - ) }}:8080/swift/v1/AUTH_%\(tenant_id\)s \ |
| 137 | + else _cephadm_rgw_vip | ansible.utils.ipaddr('address') |
| 138 | + ) }}:{{ cifmw_cephadm_rgw_port }}/swift/v1/AUTH_%\(tenant_id\)s \ |
139 | 139 | {{ uuid_swift_internal_ep.stdout }} |
140 | 140 |
|
141 | 141 | - name: Configure object store to use rgw |
|
146 | 146 | script: |- |
147 | 147 | oc -n {{ cifmw_cephadm_ns }} rsh openstackclient openstack role add --user {{ all_uuids.results.0.stdout }} --project {{ project_service_uuid.stdout }} {{ all_uuids.results.2.stdout }} |
148 | 148 | oc -n {{ cifmw_cephadm_ns }} rsh openstackclient openstack role add --user {{ all_uuids.results.0.stdout }} --project {{ project_service_uuid.stdout }} {{ all_uuids.results.3.stdout }} |
149 | | - oc -n {{ cifmw_cephadm_ns }} rsh openstackclient openstack endpoint create --region regionOne {{ all_uuids.results.1.stdout }} public {{ cifmw_cephadm_urischeme }}://{{ cifmw_external_dns_vip_ext.values() | first if cifmw_external_dns_vip_ext is defined else cifmw_cephadm_rgw_vip | ansible.utils.ipaddr('address') }}:8080/swift/v1/AUTH_%\(tenant_id\)s |
150 | | - oc -n {{ cifmw_cephadm_ns }} rsh openstackclient openstack endpoint create --region regionOne {{ all_uuids.results.1.stdout }} internal {{ cifmw_cephadm_urischeme }}://{{ cifmw_external_dns_vip_int.values() | first if cifmw_external_dns_vip_int is defined else cifmw_cephadm_rgw_vip | ansible.utils.ipaddr('address') }}:8080/swift/v1/AUTH_%\(tenant_id\)s |
| 149 | + oc -n {{ cifmw_cephadm_ns }} rsh openstackclient openstack endpoint create --region regionOne {{ all_uuids.results.1.stdout }} public {{ cifmw_cephadm_urischeme }}://{{ cifmw_external_dns_vip_ext.values() | first if cifmw_external_dns_vip_ext is defined else _cephadm_rgw_vip | ansible.utils.ipaddr('address') }}:{{ cifmw_cephadm_rgw_port }}/swift/v1/AUTH_%\(tenant_id\)s |
| 150 | + oc -n {{ cifmw_cephadm_ns }} rsh openstackclient openstack endpoint create --region regionOne {{ all_uuids.results.1.stdout }} internal {{ cifmw_cephadm_urischeme }}://{{ cifmw_external_dns_vip_int.values() | first if cifmw_external_dns_vip_int is defined else _cephadm_rgw_vip | ansible.utils.ipaddr('address') }}:{{ cifmw_cephadm_rgw_port }}/swift/v1/AUTH_%\(tenant_id\)s |
151 | 151 | oc -n {{ cifmw_cephadm_ns }} rsh openstackclient openstack role add --project {{ all_uuids.results.4.stdout }} --user {{ all_uuids.results.5.stdout }} {{ all_uuids.results.6.stdout }} |
152 | 152 | delegate_to: localhost |
153 | 153 | when: |
|
0 commit comments