diff options
author | Christian Kaenzig <christian.kaenzig@camptocamp.com> | 2013-05-08 10:59:00 +0200 |
---|---|---|
committer | Raphaƫl Pinson <raphael.pinson@camptocamp.com> | 2013-10-28 16:22:12 +0100 |
commit | dff32dcee945701986ff516375ca68fcd202a749 (patch) | |
tree | 2847498c3aa64e3d338f0383e11581bf32da7260 | |
parent | 20fbda6b91472e656331a9c64630fb207e9f5789 (diff) |
Make rsyslog server port configurable
-rw-r--r-- | manifests/server.pp | 3 | ||||
-rw-r--r-- | templates/server/_default-footer.conf.erb | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/manifests/server.pp b/manifests/server.pp index ef0525a..0cb7de8 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -31,7 +31,8 @@ class rsyslog::server ( $enable_onefile = false, $server_dir = '/srv/log/', $custom_config = undef, - $high_precision_timestamps = false + $port = '514', + $high_precision_timestamps = false, ) inherits rsyslog { $real_content = $custom_config ? { diff --git a/templates/server/_default-footer.conf.erb b/templates/server/_default-footer.conf.erb index 7ba4750..d8bd00a 100644 --- a/templates/server/_default-footer.conf.erb +++ b/templates/server/_default-footer.conf.erb @@ -4,10 +4,10 @@ $RuleSet RSYSLOG_DefaultRuleset <% if scope.lookupvar('rsyslog::server::enable_udp') -%> $InputUDPServerBindRuleset remote -$UDPServerRun 514 +$UDPServerRun <%= scope.lookupvar('rsyslog::server::port') %> <% end -%> <% if scope.lookupvar('rsyslog::server::enable_tcp') -%> $InputTCPServerBindRuleset remote -$InputTCPServerRun 514 +$InputTCPServerRun <%= scope.lookupvar('rsyslog::server::port') %> <% end -%> |