adds backend rule

This commit is contained in:
Arne Teuke
2019-01-07 20:00:18 +01:00
parent 0f6f603f8f
commit b7acbbfb73
4 changed files with 26 additions and 3 deletions

View File

@@ -19,10 +19,24 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# @summary Define manages the proxies for cd_haproxy.
# @param [string] haproxy_fqdn the fqdn of the haproxy server in question.
# @param [string] frontend_name the name for the frontend section rule.
# @param [string] frontend_order the order where the concet should appear
# @param [string] frontend_order the order where the concat should appear
# in the file.
#############################################################################
# @param [string] frontend_mode mode for the loadbalancer instance: http or tcp
# @param [string] fe_use_backend which backend to use. if left empty, the
# default backend will be used.
# @param [string] fe_bind_mode which bind mode to use, i.e. to which interface
# and poort to bind.
# @param [string] acl_rule an ACL rule to be inserted if required. Empty values
# will not be populated.
# @param [string] acl_order the order where the acl rule should be inserted,
# so it will be within the correct lb instance configuration.
# @param [string] backend_name the backend name to be used for the rule.
# @param [string] backend_order the order for the backend name, so it will be
# within the correct lb instance configuration.
# @param [string] fe_maxconn the maximum connections for the lb instance.
###############################################################################
define cd_haproxy::server::proxy (
$haproxy_fqdn = undef,
@@ -35,6 +49,9 @@ $acl_rule = '',
$acl_order = '020',
$backend_name = undef,
$backend_order = '030',
$fe_maxconn = undef,
$be_server_name = undef,
) {