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
Enable non-executable local files to be generated #3
Comments
Right now the options for this resource are pretty limited to keep it simple. Being able to set permissions seems reasonable, and I expect we didn't do it just because that introduces some platform-specific considerations -- Terraform runs on Windows, and permissions don't work the same way there. Perhaps we could side-step this by not over-generalizing and just addressing directly your concern here, with a new attribute |
That makes a lot of sense. I'll see if I can put together a PR when I have time. |
Permissions for any created file or directories can now be explicitly specified if required. This change preserves the current behavior by defaulting to previously used `0777` values for both file and directory permissions. Resolves: hashicorp#3
@brett-richardson @apparentlymart submitted a possible resolution for this with #12. I have allowed for the configuration of the file permissions instead of an executable boolean. Left the current behaviour intact. |
This is similar to #19, so I will give the same suggestion. While we don't have a multi-platform feature in place, I've been using the following workaround...
Hope it helps! |
Permissions for any created file or directories can now be explicitly specified if required. This change preserves the current behaviour by defaulting to previously used `0777` values for both file and directory permissions. Resolves: hashicorp#3
Permissions for any created file or directories can now be explicitly specified if required. This change preserves the current behaviour by defaulting to previously used `0777` values for both file and directory permissions. Resolves: hashicorp#3
Permissions for any created file or directories can now be explicitly specified if required. This change preserves the current behaviour by defaulting to previously used `0777` values for both file and directory permissions. Resolves: hashicorp#3
Permissions for any created file or directories can now be explicitly specified if required. This change preserves the current behaviour by defaulting to previously used `0777` values for both file and directory permissions. Resolves: hashicorp#3
Permissions for any created file or directories can now be explicitly specified if required. This change preserves the current behaviour by defaulting to previously used `0777` values for both file and directory permissions. Resolves: hashicorp#3
Permissions for any created file or directories can now be explicitly specified if required. This change preserves the current behaviour by defaulting to previously used `0777` values for both file and directory permissions. Resolves: hashicorp#3
Permissions for any created file or directories can now be explicitly specified if required. This change preserves the current behaviour by defaulting to previously used `0777` values for both file and directory permissions. Resolves: hashicorp#3
Currently this provider only generates files with the permissions
0777
.Is there a way to parameterise this perhaps? It seems a little odd to make the files executable by default.
https://github.com/terraform-providers/terraform-provider-local/blob/8a97bc491e1e8a28197e40d40226d6748eb07ac6/local/resource_local_file.go#L71
The text was updated successfully, but these errors were encountered: