Skip to content

Commit

Permalink
Adding mode to backend class
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Schmitt authored and DavidS committed Jan 7, 2016
1 parent 8b7f276 commit 44ef4b0
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 44ef4b0

Please sign in to comment.