mirror of https://github.com/ceph/ceph-ansible.git
parent
8f3bdd8559
commit
5e1bc1d038
|
@ -15,17 +15,23 @@
|
|||
- set_radosgw_address
|
||||
- container_binary
|
||||
|
||||
- name: install epel-release
|
||||
package:
|
||||
name: epel-release
|
||||
state: present
|
||||
register: result
|
||||
until: result is succeeded
|
||||
|
||||
- name: install s3cmd
|
||||
package:
|
||||
name: s3cmd
|
||||
state: present
|
||||
register: result
|
||||
until: result is succeeded
|
||||
when: not containerized_deployment | bool
|
||||
|
||||
- name: generate and upload a random 10Mb file - containerized deployment
|
||||
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 }} put /tmp/testinfra-{{ item.rgw_realm }}.img s3://testinfra-{{ item.rgw_realm }}'
|
||||
with_items: "{{ rgw_instances_host }}"
|
||||
|
@ -47,7 +53,7 @@
|
|||
|
||||
- name: get info from replicated file - containerized deployment
|
||||
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 }}"
|
||||
register: result
|
||||
retries: 60
|
||||
|
|
Loading…
Reference in New Issue