Skip to content

Commit

Permalink
Merge pull request #211 from DavidS/pr204-rebased
Browse files Browse the repository at this point in the history
Adding mode to backend class
  • Loading branch information
tphoney committed Jan 8, 2016
2 parents 8b7f276 + 44ef4b0 commit a37212e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/backend.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
# This name goes right after the 'backend' statement in haproxy.cfg
# Default: $name (the namevar of the resource).
#
# [*mode*]
# The mode of operation for the backend service. Valid values are undef,
# 'tcp', 'http', and 'health'.
#
# [*options*]
# A hash of options that are inserted into the backend configuration block.
#
Expand Down Expand Up @@ -50,6 +54,7 @@
# Jeremy Kitchen <jeremy@nationbuilder.com>
#
define haproxy::backend (
$mode = undef,
$collect_exported = true,
$options = {
'option' => [
Expand Down
1 change: 1 addition & 0 deletions templates/haproxy_backend_block.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

backend <%= @section_name %>
<%= scope.function_template(['haproxy/fragments/_mode.erb']) -%>
<%= scope.function_template(['haproxy/fragments/_options.erb']) -%>

0 comments on commit a37212e

Please sign in to comment.