Skip to content

Files created by file_input have different permissions #249

Description

@rijnier

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:

  1. Create a file_input resource
rsyslog_file_input 'test' do
  file '/var/log/test.log'
  severity 'debug'
  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions