Skip to content

Enable metadata folder settings in create mode - #2529

Merged
softwarefactory-delete-me[bot] merged 2 commits into
ansible-collections:mainfrom
aborche:directory_metadata
Feb 18, 2025
Merged

softwarefactory-delete-me[bot] merged 2 commits into
ansible-collections:mainfrom
aborche:directory_metadata

Conversation

@aborche

@aborche aborche commented Feb 18, 2025

Copy link
Copy Markdown
Contributor
SUMMARY

Enable metadata folder settings in create mode

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

amazon.aws.s3_object

ADDITIONAL INFORMATION

Default action in "create" mode, doesn't allow set owner and permissions over extra aws metadata.
Patch fix this issue.

Create a list of folders with owner "2:2"(ex: daemon:daemon or bin:bin) and permissions "40755"

  - name: Create folders
    aws_s3:
      endpoint_url: "{{ S3FS_URL }}"
      bucket: "{{ S3FS_BUCKET }}"
      object: "{{ item }}"
      mode: create
      encrypt: false
      validate_certs: false
      metadata:
        mode: "16877"
        gid: "2"
        uid: "2"
    with_items:
      - "{{ S3FS_FOLDER }}"
      - "{{ S3FS_FOLDER }}/public"
      - "{{ S3FS_FOLDER }}/preview"
      - "{{ S3FS_FOLDER }}/private"

@aborche aborche mentioned this pull request Feb 18, 2025
1 task done
@softwarefactory-delete-me

Copy link
Copy Markdown
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/9d9a05e073e74a079e4a535fb2c9dfae

✔️ ansible-galaxy-importer SUCCESS in 5m 04s
✔️ build-ansible-collection SUCCESS in 10m 37s
✔️ ansible-test-splitter SUCCESS in 4m 25s
✔️ integration-amazon.aws-1 SUCCESS in 12m 46s
Skipped 43 jobs

@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label Feb 18, 2025
@github-actions

github-actions Bot commented Feb 18, 2025 •

Copy link
Copy Markdown

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

@softwarefactory-delete-me

Copy link
Copy Markdown
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/56d5e64f14164ca3a186a279666ca0cf

✔️ ansible-galaxy-importer SUCCESS in 4m 55s
✔️ build-ansible-collection SUCCESS in 10m 28s
✔️ ansible-test-splitter SUCCESS in 4m 22s
✔️ integration-amazon.aws-1 SUCCESS in 13m 10s
Skipped 43 jobs

@softwarefactory-delete-me

Copy link
Copy Markdown
Contributor

Build succeeded (gate pipeline).
https://ansible.softwarefactory-project.io/zuul/buildset/c7d55c136b2a4bfaa467c06c7c532ef1

✔️ ansible-galaxy-importer SUCCESS in 5m 21s
✔️ build-ansible-collection SUCCESS in 10m 34s
✔️ ansible-test-splitter SUCCESS in 4m 01s
✔️ integration-amazon.aws-1 SUCCESS in 12m 20s
Skipped 43 jobs

@softwarefactory-delete-me
softwarefactory-delete-me Bot merged commit fb4a804 into ansible-collections:main Feb 18, 2025
@patchback

patchback Bot commented Feb 18, 2025 •

Copy link
Copy Markdown

Backport to stable-9: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-9/fb4a80435cbed1a686d6a280bc39c79100df58f8/pr-2529

Backported as #2530

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback Bot pushed a commit that referenced this pull request Feb 18, 2025
SUMMARY
Enable metadata folder settings in create mode
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
amazon.aws.s3_object
ADDITIONAL INFORMATION
Default action in "create" mode, doesn't allow set owner and permissions over extra aws metadata.
Patch fix this issue.
Create a list of folders with owner "2:2"(ex: daemon:daemon or bin:bin) and permissions "40755"
  - name: Create folders
    aws_s3:
      endpoint_url: "{{ S3FS_URL }}"
      bucket: "{{ S3FS_BUCKET }}"
      object: "{{ item }}"
      mode: create
      encrypt: false
      validate_certs: false
      metadata:
        mode: "16877"
        gid: "2"
        uid: "2"
    with_items:
      - "{{ S3FS_FOLDER }}"
      - "{{ S3FS_FOLDER }}/public"
      - "{{ S3FS_FOLDER }}/preview"
      - "{{ S3FS_FOLDER }}/private"

Reviewed-by: Mark Chappell
(cherry picked from commit fb4a804)
softwarefactory-delete-me Bot pushed a commit that referenced this pull request Feb 18, 2025
This is a backport of PR #2529 as merged into main (fb4a804).
SUMMARY
Enable metadata folder settings in create mode
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
amazon.aws.s3_object
ADDITIONAL INFORMATION
Default action in "create" mode, doesn't allow set owner and permissions over extra aws metadata.
Patch fix this issue.
Create a list of folders with owner "2:2"(ex: daemon:daemon or bin:bin) and permissions "40755"
  - name: Create folders
    aws_s3:
      endpoint_url: "{{ S3FS_URL }}"
      bucket: "{{ S3FS_BUCKET }}"
      object: "{{ item }}"
      mode: create
      encrypt: false
      validate_certs: false
      metadata:
        mode: "16877"
        gid: "2"
        uid: "2"
    with_items:
      - "{{ S3FS_FOLDER }}"
      - "{{ S3FS_FOLDER }}/public"
      - "{{ S3FS_FOLDER }}/preview"
      - "{{ S3FS_FOLDER }}/private"

Reviewed-by: Mark Chappell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-9 mergeit Merge the PR (SoftwareFactory)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants