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

feat: User-specified mount point owner and permissions #352

Merged

Conversation

japokorn
Copy link
Collaborator

Added new volume options related to mount point directory: mount_user - directory owner (string)
mount_group - directory group (string)
mount_permissions - directory permissions (string; same format as chmod)

Resolves: rhbz#2181661

@japokorn japokorn changed the title User-specified mount point owner and permissions User-specified mount point owner and permissions (WIP) May 15, 2023
@codecov
Copy link

codecov bot commented May 15, 2023

Codecov Report

Patch coverage has no change and project coverage change: -1.71 ⚠️

Comparison is base (1b4b4c5) 13.90% compared to head (cfd7781) 12.19%.

❗ Current head cfd7781 differs from pull request most recent head 14328ba. Consider uploading reports for the commit 14328ba to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #352      +/-   ##
==========================================
- Coverage   13.90%   12.19%   -1.71%     
==========================================
  Files           8        8              
  Lines        1705     1705              
  Branches       71        0      -71     
==========================================
- Hits          237      208      -29     
- Misses       1468     1497      +29     
Flag Coverage Δ
sanity ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
library/blivet.py 0.00% <ø> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

library/blivet.py Fixed Show fixed Hide fixed
library/blivet.py Fixed Show fixed Hide fixed
library/blivet.py Fixed Show fixed Hide fixed
@japokorn japokorn force-pushed the main-mnt_owner_permissions branch 4 times, most recently from a638c00 to 850f93e Compare May 16, 2023 12:33
@japokorn japokorn changed the title User-specified mount point owner and permissions (WIP) feat: User-specified mount point owner and permissions (WIP) May 16, 2023
@japokorn japokorn marked this pull request as draft May 16, 2023 13:03
@japokorn japokorn changed the title feat: User-specified mount point owner and permissions (WIP) feat: User-specified mount point owner and permissions May 16, 2023
@japokorn japokorn marked this pull request as ready for review May 16, 2023 13:17
@japokorn japokorn requested a review from richm May 16, 2023 13:18
tasks/main-blivet.yml Outdated Show resolved Hide resolved
tasks/main-blivet.yml Outdated Show resolved Hide resolved
@richm
Copy link
Contributor

richm commented May 16, 2023

Also need an update to the README.md

@richm
Copy link
Contributor

richm commented May 17, 2023

Did you push your new commit(s)?

@japokorn japokorn force-pushed the main-mnt_owner_permissions branch from 850f93e to cfd7781 Compare May 17, 2023 14:42
Added new volume options related to mount point directory:
mount_user - directory owner (string)
mount_group - directory group (string)
mount_permissions - directory permissions (string; same format as chmod)

Resolves: rhbz#2181661
group: "{{ mount_info['group'] if 'group' in mount_info else omit }}"
mode: "{{ mount_info['mode'] if 'mode' in mount_info else omit }}"
state: directory
when: "{{ mount_info['owner'] != none or mount_info['group'] != none or mount_info['mode'] != none }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
when: "{{ mount_info['owner'] != none or mount_info['group'] != none or mount_info['mode'] != none }}"
when: mount_info['owner'] != none or mount_info['group'] != none or
mount_info['mode'] != none

@japokorn japokorn force-pushed the main-mnt_owner_permissions branch from cfd7781 to 14328ba Compare May 17, 2023 14:48
@japokorn
Copy link
Collaborator Author

Did you push your new commit(s)?

My apologies, I am replying to comments that I have fixed locally, so I know I have handled them.
Anyways I am mostly done.

@richm
Copy link
Contributor

richm commented May 17, 2023

[citest]

@richm
Copy link
Contributor

richm commented May 17, 2023

Did you push your new commit(s)?

My apologies, I am replying to comments that I have fixed locally, so I know I have handled them. Anyways I am mostly done.

Looks good now.

@japokorn japokorn merged commit 0d04e00 into linux-system-roles:main May 17, 2023
16 checks passed
richm added a commit to richm/linux-system-roles-storage that referenced this pull request May 23, 2023
Turns out that the systemd refresh removed as part of
linux-system-roles#352
was needed.  This fix adds it back.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
richm added a commit that referenced this pull request May 23, 2023
Turns out that the systemd refresh removed as part of
#352
was needed.  This fix adds it back.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants