diff --git a/README.md b/README.md index 908cced..cff06e1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ |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 `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 * manage haproxy service +* restart service after changes in the configuration ### Repo Structure Repostructure has moved to REPOSTRUCTURE.md in repo. diff --git a/manifests/server/proxy.pp b/manifests/server/proxy.pp index 9a1f0b3..b0bd389 100644 --- a/manifests/server/proxy.pp +++ b/manifests/server/proxy.pp @@ -26,6 +26,7 @@ define cd_haproxy::server::proxy ( $frontend_name = undef, +$frontend_mode = undef, $frontend_order = '010', $acl_rule = undef, $acl_order = '020', diff --git a/manifests/server/proxy_test.pp b/manifests/server/proxy_test.pp index 5b00659..2b4fc66 100644 --- a/manifests/server/proxy_test.pp +++ b/manifests/server/proxy_test.pp @@ -26,6 +26,7 @@ class cd_haproxy::server::proxy_test ( cd_haproxy::server::proxy { 'testing': frontend_name => 'test01-frontend', + frontend_mode => 'http', acl_rule => 'test01-acl', backend_name => 'test01-backend', } diff --git a/templates/haproxy_frontend_rule.erb b/templates/haproxy_frontend_rule.erb index cfe4bdb..fc8c76e 100644 --- a/templates/haproxy_frontend_rule.erb +++ b/templates/haproxy_frontend_rule.erb @@ -1,2 +1,2 @@ - frontend <%= @frontend_name %> +mode <%= @frontend_mode %>