Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mirror
rsyslog
Commits
80865d17
Commit
80865d17
authored
Dec 31, 2012
by
Darrin Eden
Browse files
Option to preserve FQDN to remote syslog
parent
27788d21
Changes
4
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
80865d17
...
...
@@ -57,6 +57,8 @@ See `attributes/default.rb` for default values.
not.
*
`node['rsyslog']['max_message_size']`
- Specify the maximum allowed
message size. Default is 2k.
*
`node['rsyslog']['preserve_fqdn']`
- Specify if the full host name
will be used. Default is off.
*
`node['rsyslog']['user']`
- Who should own the configuration files and directories
*
`node['rsyslog']['group']`
- Who should group-own the configuration files
and directories
...
...
attributes/default.rb
View file @
80865d17
...
...
@@ -26,6 +26,7 @@ default["rsyslog"]["server_search"] = "role:loghost"
default
[
"rsyslog"
][
"remote_logs"
]
=
true
default
[
"rsyslog"
][
"per_host_dir"
]
=
"%$YEAR%/%$MONTH%/%$DAY%/%HOSTNAME%"
default
[
"rsyslog"
][
"max_message_size"
]
=
"2k"
default
[
"rsyslog"
][
"preserve_fqdn"
]
=
"off"
# The most likely platform-specific attributes
default
[
"rsyslog"
][
"service_name"
]
=
"rsyslog"
...
...
metadata.rb
View file @
80865d17
...
...
@@ -78,6 +78,11 @@ attribute "rsyslog/max_message_size",
:description
=>
"Specifies the maximum size of allowable Rsyslog messages"
,
:default
=>
"2k"
attribute
"rsyslog/preserve_fqdn"
,
:display_name
=>
"Preserve FQDN"
,
:description
=>
"Specifies if the short or full host name will be used. The default off setting is more compatible."
,
:default
=>
"off"
attribute
"rsyslog/priv_seperation"
,
:display_name
=>
"Privilege separation"
,
:description
=>
"Whether or not to make use of Rsyslog privilege separation"
,
...
...
templates/default/rsyslog.conf.erb
View file @
80865d17
...
...
@@ -8,6 +8,11 @@
#
$MaxMessageSize
<%=
node
[
'rsyslog'
][
'max_message_size'
]
%>
#
# Preserve FQDN
#
$PreserveFQDN
<%=
node
[
'rsyslog'
][
'preserve_fqdn'
]
%>
#################
#### MODULES ####
#################
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment