Default folder_mode permissions in nginx_config resource may fail logrotate
Opened this issue ยท 2 comments
TimRots commented
๐ป Brief Description
Currently the nginx_config
resource in this cookbook has a folder_mode
property which defaults to 0750
and is used for nginx_dir
, configs in nginx_dir
, and nginx_log_dir
permissions.
These defaults can cause issues with the logrotate configuration that is shipped with most Debian (like) OS-es.
A suggestion to omit this issue would be to introduce more fine-grained control over the logdir permissions
by adding properties like log_dir_perm
, log_dir_owner
, and log_dir_group
.
I would like to volunteer for making a fix if I can get some feedback from the maintainers on the how.
๐ฅ Cookbook version
>= 12.1.0
๐ฉโ๐ณ Chef-Infra Version
18.2.7
๐ฉ Platform details
Ubuntu 20.04 / 22.04