Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weā€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

šŸŒ cloud_storage_url as aws s3 endpoint url for s3 compatible cloud sā€¦ #3974

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ansible/roles/aws-cloud-storage/tasks/delete-folder.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
- name: delete files and folders recursively
environment:
AWS_ENDPOINT_URL: "{{ cloud_storage_url }}"
AWS_DEFAULT_REGION: "{{ aws_default_region }}"
AWS_ACCESS_KEY_ID: "{{ aws_access_key_id }}"
AWS_SECRET_ACCESS_KEY: "{{ aws_secret_access_key }}"
shell: "aws s3 rm s3://{{ s3_bucket_name }}/{{ s3_path }} --recursive"
shell: "aws s3 rm s3://{{ s3_bucket_name }}/{{ s3_path }} --recursive --endpoint-url {{ cloud_storage_url }}"
async: 3600
poll: 10
3 changes: 2 additions & 1 deletion ansible/roles/aws-cloud-storage/tasks/delete.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
- name: delete files from s3
environment:
AWS_ENDPOINT_URL: "{{ cloud_storage_url }}"
AWS_DEFAULT_REGION: "{{ aws_default_region }}"
AWS_ACCESS_KEY_ID: "{{ aws_access_key_id }}"
AWS_SECRET_ACCESS_KEY: "{{ aws_secret_access_key }}"
shell: "aws s3 rm s3://{{ s3_bucket_name }}/{{ s3_path }}"
shell: "aws s3 rm s3://{{ s3_bucket_name }}/{{ s3_path }} --endpoint-url {{ cloud_storage_url }}"
async: 3600
poll: 10
3 changes: 2 additions & 1 deletion ansible/roles/aws-cloud-storage/tasks/download.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
- name: download files to s3
environment:
AWS_ENDPOINT_URL: "{{ cloud_storage_url }}"
AWS_DEFAULT_REGION: "{{ aws_default_region }}"
AWS_ACCESS_KEY_ID: "{{ aws_access_key_id }}"
AWS_SECRET_ACCESS_KEY: "{{ aws_secret_access_key }}"
shell: "aws s3 cp s3://{{ s3_bucket_name }}/{{ s3_path }} {{ local_file_or_folder_path }}"
shell: "aws s3 cp s3://{{ s3_bucket_name }}/{{ s3_path }} {{ local_file_or_folder_path }} --endpoint-url {{ cloud_storage_url }}"
async: 3600
poll: 10
3 changes: 2 additions & 1 deletion ansible/roles/aws-cloud-storage/tasks/upload-folder.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
- name: upload folder to s3
environment:
AWS_ENDPOINT_URL: "{{ cloud_storage_url }}"
AWS_DEFAULT_REGION: "{{ aws_default_region }}"
AWS_ACCESS_KEY_ID: "{{ aws_access_key_id }}"
AWS_SECRET_ACCESS_KEY: "{{ aws_secret_access_key }}"
shell: "aws s3 cp {{ local_file_or_folder_path }} s3://{{ s3_bucket_name }}/{{ s3_path }} --recursive"
shell: "aws s3 cp {{ local_file_or_folder_path }} s3://{{ s3_bucket_name }}/{{ s3_path }} --recursive --endpoint-url {{ cloud_storage_url }}"
async: 3600
poll: 10
3 changes: 2 additions & 1 deletion ansible/roles/aws-cloud-storage/tasks/upload.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
- name: upload files to s3
environment:
AWS_ENDPOINT_URL: "{{ cloud_storage_url }}"
AWS_DEFAULT_REGION: "{{ aws_default_region }}"
AWS_ACCESS_KEY_ID: "{{ aws_access_key_id }}"
AWS_SECRET_ACCESS_KEY: "{{ aws_secret_access_key }}"
shell: "aws s3 cp {{ local_file_or_folder_path }} s3://{{ s3_bucket_name }}/{{ s3_path }}"
shell: "aws s3 cp {{ local_file_or_folder_path }} s3://{{ s3_bucket_name }}/{{ s3_path }} --endpoint-url {{ cloud_storage_url }}"
async: 3600
poll: 10
2 changes: 1 addition & 1 deletion ansible/roles/cassandra-backup/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cassandra_root_dir: '/etc/cassandra'
data_dir: '/var/lib/cassandra/data'
cloud_storage_cassandrabackup_bucketname: "{{cloud_storage_management_bucketname}}"
cloud_storage_cassandrabackup_foldername: 'cassandra-backup'
cloud_storage_cassandrabackup_foldername: "cassandra-backup/{{ lookup('pipe', 'date +%Y%m%d') }}/{{ ansible_hostname }}"