Fix rsyslog file and directory permissions
This commit is contained in:
		@@ -24,4 +24,12 @@ template(
 | 
			
		||||
    type="omfile"
 | 
			
		||||
    dynafile="FilePerDay"
 | 
			
		||||
    template="RSYSLOG_FileFormat"
 | 
			
		||||
    fileCreateMode="{{ rsyslog_file_create_mode }}"
 | 
			
		||||
    dirCreateMode="{{ rsyslog_dir_create_mode }}"
 | 
			
		||||
    createDirs="{{ rsyslog_create_dirs | ternary('on', 'off') }}"
 | 
			
		||||
    fileOwner="{{ rsyslog_file_owner }}"
 | 
			
		||||
    fileGroup="{{ rsyslog_file_group }}"
 | 
			
		||||
    dirOwner="{{ rsyslog_file_owner }}"
 | 
			
		||||
    dirGroup="{{ rsyslog_file_group }}"
 | 
			
		||||
    umask="{{ rsyslog_umask }}"
 | 
			
		||||
)
 | 
			
		||||
 
 | 
			
		||||
@@ -27,9 +27,18 @@ $FileOwner {{ rsyslog_file_owner }}
 | 
			
		||||
{% if rsyslog_file_group is defined %}
 | 
			
		||||
$FileGroup {{ rsyslog_file_group }}
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% if rsyslog_dir_owner is defined %}
 | 
			
		||||
$FileOwner {{ rsyslog_dir_owner }}
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% if rsyslog_dir_group is defined %}
 | 
			
		||||
$FileGroup {{ rsyslog_dir_group }}
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% if rsyslog_file_create_mode is defined %}
 | 
			
		||||
$FileCreateMode {{ rsyslog_file_create_mode }}
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% if rsyslog_create_dirs is defined %}
 | 
			
		||||
CreateDirs {{ rsyslog_create_dirs | ternary('on', 'off') }}
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% if rsyslog_dir_create_mode is defined %}
 | 
			
		||||
$DirCreateMode {{ rsyslog_dir_create_mode }}
 | 
			
		||||
{% endif %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user