Skip to content

Commit

Permalink
#328 create buckets as localstack service account
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Sizemore committed Dec 14, 2023
1 parent ec2e440 commit 2aedd15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/localstack_create_bucket.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- name: create localstack bucket for testing
ansible.builtin.shell: "aws --endpoint={{ custom_endpoint_escaped }} s3 mb s3://{{ bucket_options.bucket_name }}"
become: yes
become_user: "{{ dataverse.payara.user }}"
become_user: "{{ localstack.user }}"
when: bucket_options.custom_endpoint_url | length > 0

- name: place CORS.json
Expand All @@ -21,7 +21,7 @@
- name: set CORS on bucket when upload_redirect is true
ansible.builtin.shell: 'aws --endpoint={{ custom_endpoint_escaped }} s3api put-bucket-cors --bucket {{ bucket_options.bucket_name }} --cors-configuration file:///tmp/cors.json'
become: yes
become_user: "{{ dataverse.payara.user }}"
become_user: "{{ localstack.user }}"
when: bucket_options.upload_redirect == true

- name: debug
Expand Down Expand Up @@ -52,7 +52,7 @@

- name: set Payara JVM options
become: yes
become_user: '{{ dataverse.payara.user }}'
become_user: '{{ localstack.user }}'
ansible.builtin.shell: '{{ payara_dir }}/bin/asadmin create-jvm-options "\-Ddataverse.files.{{ bucket_options.id }}.{{ inner.key }}={{ inner.value }}"'
loop: "{{ lookup('dict', jvm_options) }}"
loop_control:
Expand Down

0 comments on commit 2aedd15

Please sign in to comment.