Skip to content

Commit

Permalink
Merge pull request #22 from drbop/drbop_log_success
Browse files Browse the repository at this point in the history
Parameter for logging success
  • Loading branch information
Ashley Penney committed Aug 29, 2013
2 parents 2384f44 + 9ed295a commit 6cc5391
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifests/service.pp
Expand Up @@ -5,6 +5,8 @@
#
# Parameters:
# $ensure - optional - defaults to 'present'
# $log_on_success - optional - may contain any combination of
# 'PID', 'HOST', 'USERID', 'EXIT', 'DURATION', 'TRAFFIC'
# $log_on_failure - optional - may contain any combination of
# 'HOST', 'USERID', 'ATTEMPT'
# $service_type - optional - type setting in xinetd
Expand Down Expand Up @@ -55,6 +57,7 @@
$port,
$server,
$ensure = present,
$log_on_success = undef,
$log_on_failure = undef,
$service_type = undef,
$service_name = $title,
Expand Down Expand Up @@ -106,6 +109,7 @@
# - $server_args
# - $only_from
# - $per_source
# - $log_on_success
# - $log_on_failure
# - $cps
# - $flags
Expand Down
3 changes: 3 additions & 0 deletions templates/service.erb
Expand Up @@ -27,6 +27,9 @@ service <%= @service_name %>
<% if @per_source -%>
per_source = <%= @per_source %>
<% end -%>
<% if @log_on_success -%>
log_on_success += <%= @log_on_success %>
<% end -%>
<% if @log_on_failure -%>
log_on_failure += <%= @log_on_failure %>
<% end -%>
Expand Down

0 comments on commit 6cc5391

Please sign in to comment.