Skip to content

Commit

Permalink
(simp#150) Changed legacy control character params into global params
Browse files Browse the repository at this point in the history
Fixes simp#150
  • Loading branch information
michael-riddle committed May 15, 2024
1 parent 7b58607 commit 0cf0461
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 25 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* Wed May 15 2024 Mike Riddle <[email protected]> - 8.8.0
- Moved legacy control character parms into global params

* Tue Feb 27 2024 Mike Riddle <[email protected]> - 8.7.0
- Added a parameter that allows users to define rsyslog rules via hieradata

Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simp-rsyslog",
"version": "8.7.0",
"version": "8.8.0",
"author": "SIMP Team",
"summary": "A puppet module to support RSyslog version 8.",
"license": "Apache-2.0",
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/expected/global_default.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
$UMASK 0027
$EscapeControlCharactersOnReceive on
$ControlCharacterEscapePrefix #
$RepeatedMsgReduction on

global(
Expand All @@ -9,6 +7,8 @@ global(
workDirectory="/var/spool/rsyslog"
net.permitACLWarning="on"
net.enableDNS="on"
parser.escapeControlCharactersOnReceive="on"
parser.controlCharacterEscapePrefix="#"
)

global(localHostname="foo.example.com")
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/expected/global_extra_globals.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
$UMASK 0027
$EscapeControlCharactersOnReceive on
$ControlCharacterEscapePrefix #
$RepeatedMsgReduction on
$FailOnChownFailure on
$AbortOnUncleanConfig on
Expand All @@ -11,6 +9,8 @@ global(
workDirectory="/var/spool/rsyslog"
net.permitACLWarning="on"
net.enableDNS="on"
parser.escapeControlCharactersOnReceive="on"
parser.controlCharacterEscapePrefix="#"
)

global(localHostname="foo.example.com")
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/expected/global_extra_main_queue_params.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
$UMASK 0027
$EscapeControlCharactersOnReceive on
$ControlCharacterEscapePrefix #
$RepeatedMsgReduction on

global(
Expand All @@ -9,6 +7,8 @@ global(
workDirectory="/var/spool/rsyslog"
net.permitACLWarning="on"
net.enableDNS="on"
parser.escapeControlCharactersOnReceive="on"
parser.controlCharacterEscapePrefix="#"
)

global(localHostname="foo.example.com")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
$UMASK 0027
$EscapeControlCharactersOnReceive on
$ControlCharacterEscapePrefix #
$RepeatedMsgReduction on

global(
Expand All @@ -9,6 +7,8 @@ global(
workDirectory="/var/spool/rsyslog"
net.permitACLWarning="on"
net.enableDNS="on"
parser.escapeControlCharactersOnReceive="on"
parser.controlCharacterEscapePrefix="#"
)

global(localHostname="foo.example.com")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
$UMASK 0027
$EscapeControlCharactersOnReceive on
$ControlCharacterEscapePrefix #
$RepeatedMsgReduction on

global(
Expand All @@ -9,6 +7,8 @@ global(
workDirectory="/var/spool/rsyslog"
net.permitACLWarning="on"
net.enableDNS="on"
parser.escapeControlCharactersOnReceive="on"
parser.controlCharacterEscapePrefix="#"
)

global(localHostname="foo.example.com")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
$UMASK 0027
$EscapeControlCharactersOnReceive on
$ControlCharacterEscapePrefix #
$RepeatedMsgReduction on

global(
Expand All @@ -9,6 +7,8 @@ global(
workDirectory="/var/spool/rsyslog"
net.permitACLWarning="on"
net.enableDNS="on"
parser.escapeControlCharactersOnReceive="on"
parser.controlCharacterEscapePrefix="#"
)

global(localHostname="foo.example.com")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
$UMASK 0027
$EscapeControlCharactersOnReceive on
$ControlCharacterEscapePrefix #
$RepeatedMsgReduction on

global(
Expand All @@ -9,6 +7,8 @@ global(
workDirectory="/var/spool/rsyslog"
net.permitACLWarning="on"
net.enableDNS="on"
parser.escapeControlCharactersOnReceive="on"
parser.controlCharacterEscapePrefix="#"
)

global(localHostname="foo.example.com")
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/expected/global_tcp_server.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
$UMASK 0027
$EscapeControlCharactersOnReceive on
$ControlCharacterEscapePrefix #
$RepeatedMsgReduction on

global(
Expand All @@ -9,6 +7,8 @@ global(
workDirectory="/var/spool/rsyslog"
net.permitACLWarning="on"
net.enableDNS="on"
parser.escapeControlCharactersOnReceive="on"
parser.controlCharacterEscapePrefix="#"
)

global(localHostname="foo.example.com")
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/expected/global_tls_logging.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
$UMASK 0027
$EscapeControlCharactersOnReceive on
$ControlCharacterEscapePrefix #
$RepeatedMsgReduction on

global(
Expand All @@ -9,6 +7,8 @@ global(
workDirectory="/var/spool/rsyslog"
net.permitACLWarning="on"
net.enableDNS="on"
parser.escapeControlCharactersOnReceive="on"
parser.controlCharacterEscapePrefix="#"
)

global(localHostname="foo.example.com")
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/expected/global_tls_tcp_server.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
$UMASK 0027
$EscapeControlCharactersOnReceive on
$ControlCharacterEscapePrefix #
$RepeatedMsgReduction on

global(
Expand All @@ -9,6 +7,8 @@ global(
workDirectory="/var/spool/rsyslog"
net.permitACLWarning="on"
net.enableDNS="on"
parser.escapeControlCharactersOnReceive="on"
parser.controlCharacterEscapePrefix="#"
)

global(localHostname="foo.example.com")
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/expected/global_udp_server.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
$UMASK 0027
$EscapeControlCharactersOnReceive on
$ControlCharacterEscapePrefix #
$RepeatedMsgReduction on

global(
Expand All @@ -9,6 +7,8 @@ global(
workDirectory="/var/spool/rsyslog"
net.permitACLWarning="on"
net.enableDNS="on"
parser.escapeControlCharactersOnReceive="on"
parser.controlCharacterEscapePrefix="#"
)

global(localHostname="foo.example.com")
Expand Down
4 changes: 2 additions & 2 deletions templates/config/pre_logging.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@
# want it.
-%>
$UMASK <%= @umask %>
$EscapeControlCharactersOnReceive <%= t_bool_xlat[@escape_control_characters_on_receive] %>
$ControlCharacterEscapePrefix <%= @control_character_escape_prefix %>
$RepeatedMsgReduction <%= t_bool_xlat[@repeated_msg_reduction] %>
<% if @extra_legacy_globals -%>
<% @extra_legacy_globals.each do |name,value| -%>
Expand Down Expand Up @@ -93,6 +91,8 @@ global(
workDirectory="<%= @work_directory %>"
net.permitACLWarning="<%= t_bool_xlat[@net_permit_acl_warning] %>"
net.enableDNS="<%= t_bool_xlat[@net_enable_dns] %>"
parser.escapeControlCharactersOnReceive="<%= t_bool_xlat[@escape_control_characters_on_receive] %>"
parser.controlCharacterEscapePrefix="<%= @control_character_escape_prefix %>"
)

global(localHostname="<%= @localhostname %>")
Expand Down

0 comments on commit 0cf0461

Please sign in to comment.