Brief Description
Config files created with the file_input resource don't have the same permissions as files created by the default recipe (if the attributes are changed) and the file mode was hardcoded.
Cookbook version
11.0.1
Chef-Infra Version
Chef 17 and 18
Platform details
RHEL 8 and RHEL 9
Steps To Reproduce
Steps to reproduce the behavior:
- Create a
file_input resource
rsyslog_file_input 'test' do
file '/var/log/test.log'
severity 'debug'
- File permissions are hardcoded to 0664 instead of what is set in
node['rsyslog']['config_files']['mode']
Expected behavior
I expect the file permissions for these files to match the rest of the files generated by the default recipe
Additional context
#248
Brief Description
Config files created with the file_input resource don't have the same permissions as files created by the default recipe (if the attributes are changed) and the file mode was hardcoded.
Cookbook version
11.0.1
Chef-Infra Version
Chef 17 and 18
Platform details
RHEL 8 and RHEL 9
Steps To Reproduce
Steps to reproduce the behavior:
file_inputresourcenode['rsyslog']['config_files']['mode']Expected behavior
I expect the file permissions for these files to match the rest of the files generated by the
defaultrecipeAdditional context
#248