-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
file
resource's inspect_existing_fs_entry
prevents managing permissions on char/dev files
#4599
Comments
Ping? |
piiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiing? |
@jaymzh Please don't do that. |
@coderanger or @lamont-granquist - what would you like to be the solution here... this continues to bite us and depending on how you think it should be fixed I may be able to allocate resources to fix it. |
@jaymzh I just meant to not ping on tickets, fixing the issue is cool but I have no input on that :) |
Well the thing I'm vaguely worried about is if you start managing file perms on non-files with the file resource its a slippery slope to wanting to create them with |
so can you fix the logic in a generic way so it literally read in the code like you explained it -- where those checks get bypassed when we don't have content and aren't creating a tempfile? that does make sense to me and then i can just go 'lalalalalalalalala i can't hear you' about char devices and not worry about it... |
@lamont-granquist if there's no |
this is related to #6704 I believe... and unless it was fixed recently, I think it's still broken. |
Description
It is desired to use the
file
resource to manage permissions on files we are not creating, ala:The
inspect_existing_fs_entry
check in thefile
provider prevents this saying that it's the wrong type and can't manage it. This makes sense if we're trying to write contents, but otherwise, it doesn't.Chef Version
12.6.0
Platform Version
CentOS 6 and CentOS7
Replication Case
Client Output
The text was updated successfully, but these errors were encountered: