mirror of https://github.com/ceph/ceph-ansible.git
parent
8f3bdd8559
commit
5e1bc1d038
|
@ -15,17 +15,23 @@
|
||||||
- set_radosgw_address
|
- set_radosgw_address
|
||||||
- container_binary
|
- container_binary
|
||||||
|
|
||||||
|
- name: install epel-release
|
||||||
|
package:
|
||||||
|
name: epel-release
|
||||||
|
state: present
|
||||||
|
register: result
|
||||||
|
until: result is succeeded
|
||||||
|
|
||||||
- name: install s3cmd
|
- name: install s3cmd
|
||||||
package:
|
package:
|
||||||
name: s3cmd
|
name: s3cmd
|
||||||
state: present
|
state: present
|
||||||
register: result
|
register: result
|
||||||
until: result is succeeded
|
until: result is succeeded
|
||||||
when: not containerized_deployment | bool
|
|
||||||
|
|
||||||
- name: generate and upload a random 10Mb file - containerized deployment
|
- name: generate and upload a random 10Mb file - containerized deployment
|
||||||
shell: >
|
shell: >
|
||||||
{{ container_binary }} run --rm --name=rgw_multisite_test --entrypoint=bash {{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }} -c 'dd if=/dev/urandom of=/tmp/testinfra-{{ item.rgw_realm }}.img bs=1M count=10;
|
{{ container_binary }} run --rm --name=rgw_multisite_test -v /bin/s3cmd:/bin/s3cmd -v /usr/lib/python3.6/site-packages/S3:/usr/lib/python3.6/site-packages/S3 --entrypoint=bash {{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }} -c 'dd if=/dev/urandom of=/tmp/testinfra-{{ item.rgw_realm }}.img bs=1M count=10;
|
||||||
s3cmd --no-ssl --access_key={{ item.system_access_key }} --secret_key={{ item.system_secret_key }} --host={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} --host-bucket={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} mb s3://testinfra-{{ item.rgw_realm }};
|
s3cmd --no-ssl --access_key={{ item.system_access_key }} --secret_key={{ item.system_secret_key }} --host={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} --host-bucket={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} mb s3://testinfra-{{ item.rgw_realm }};
|
||||||
s3cmd --no-ssl --access_key={{ item.system_access_key }} --secret_key={{ item.system_secret_key }} --host={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} --host-bucket={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} put /tmp/testinfra-{{ item.rgw_realm }}.img s3://testinfra-{{ item.rgw_realm }}'
|
s3cmd --no-ssl --access_key={{ item.system_access_key }} --secret_key={{ item.system_secret_key }} --host={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} --host-bucket={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} put /tmp/testinfra-{{ item.rgw_realm }}.img s3://testinfra-{{ item.rgw_realm }}'
|
||||||
with_items: "{{ rgw_instances_host }}"
|
with_items: "{{ rgw_instances_host }}"
|
||||||
|
@ -47,7 +53,7 @@
|
||||||
|
|
||||||
- name: get info from replicated file - containerized deployment
|
- name: get info from replicated file - containerized deployment
|
||||||
command: >
|
command: >
|
||||||
{{ container_binary }} run --rm --name=rgw_multisite_test --entrypoint=s3cmd {{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }} --no-ssl --access_key={{ item.system_access_key }} --secret_key={{ item.system_secret_key }} --host={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} --host-bucket={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} info s3://testinfra-{{ item.rgw_realm }}/testinfra-{{ item.rgw_realm }}.img
|
{{ container_binary }} run --rm --name=rgw_multisite_test -v /bin/s3cmd:/bin/s3cmd -v /usr/lib/python3.6/site-packages/S3:/usr/lib/python3.6/site-packages/S3 --entrypoint=s3cmd {{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }} --no-ssl --access_key={{ item.system_access_key }} --secret_key={{ item.system_secret_key }} --host={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} --host-bucket={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} info s3://testinfra-{{ item.rgw_realm }}/testinfra-{{ item.rgw_realm }}.img
|
||||||
with_items: "{{ rgw_instances_host }}"
|
with_items: "{{ rgw_instances_host }}"
|
||||||
register: result
|
register: result
|
||||||
retries: 60
|
retries: 60
|
||||||
|
|
Loading…
Reference in New Issue