adds frontend variables

This commit is contained in:
Arne Teuke
2018-12-30 15:39:04 +01:00
parent 2917654242
commit 74f61bc04f
4 changed files with 5 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
|Repo Name| version | Build Status| |Repo Name| version | Build Status|
|---|---|---|---| |---|---|---|---|
|`cd_haproxy`| 1.0.0.0 | [![Build Status](https://pipelines.confdroid.com/buildStatus/icon?job=cd_haproxy)](https://pipelines.confdroid.com/job/cd_haproxy/)| |`cd_haproxy`| 1.0.1.0 | [![Build Status](https://pipelines.confdroid.com/buildStatus/icon?job=cd_haproxy)](https://pipelines.confdroid.com/job/cd_haproxy/)|
### Synopsis ### Synopsis
`HA Proxy` is a very powerful and popular open source load balanacer to balance incoming requests between multiple instances of web-, application- or database servers etc. `HA Proxy` is a very powerful and popular open source load balanacer to balance incoming requests between multiple instances of web-, application- or database servers etc.
@@ -42,6 +42,7 @@ CONFIGURATION
SERVICE SERVICE
* manage haproxy service * manage haproxy service
* restart service after changes in the configuration
### Repo Structure ### Repo Structure
Repostructure has moved to REPOSTRUCTURE.md in repo. Repostructure has moved to REPOSTRUCTURE.md in repo.

View File

@@ -26,6 +26,7 @@
define cd_haproxy::server::proxy ( define cd_haproxy::server::proxy (
$frontend_name = undef, $frontend_name = undef,
$frontend_mode = undef,
$frontend_order = '010', $frontend_order = '010',
$acl_rule = undef, $acl_rule = undef,
$acl_order = '020', $acl_order = '020',

View File

@@ -26,6 +26,7 @@ class cd_haproxy::server::proxy_test (
cd_haproxy::server::proxy { 'testing': cd_haproxy::server::proxy { 'testing':
frontend_name => 'test01-frontend', frontend_name => 'test01-frontend',
frontend_mode => 'http',
acl_rule => 'test01-acl', acl_rule => 'test01-acl',
backend_name => 'test01-backend', backend_name => 'test01-backend',
} }

View File

@@ -1,2 +1,2 @@
frontend <%= @frontend_name %> frontend <%= @frontend_name %>
mode <%= @frontend_mode %>