acl template works
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
|Repo Name| version | Build Status|
|
|Repo Name| version | Build Status|
|
||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
|`cd_haproxy`| 1.0.1.0 | [](https://pipelines.confdroid.com/job/cd_haproxy/)|
|
|`cd_haproxy`| 1.0.2.0 | [](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.
|
||||||
@@ -91,12 +91,15 @@ In order to create proxy instances, you will need an external class, which addre
|
|||||||
```
|
```
|
||||||
cd_haproxy::server::proxy { 'testing':
|
cd_haproxy::server::proxy { 'testing':
|
||||||
frontend_name => 'test01-frontend',
|
frontend_name => 'test01-frontend',
|
||||||
acl_rule => 'test01-acl',
|
frontend_mode => 'http',
|
||||||
|
`acl_rule` => ['too_fast fe_sess_rate ge 10',
|
||||||
|
'network_allowed src 0.0.0.0/0'],
|
||||||
backend_name => 'test01-backend',
|
backend_name => 'test01-backend',
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
This allows the puppet module to create the sections in the configuration file as required. The haproxy service will be restarted after the changes in the configuration file are made.
|
This allows the puppet module to create the sections in the configuration file as required. The haproxy service will be restarted after the changes in the configuration file are made.
|
||||||
|
Multiple ACLs need to be added as array, and will create one line each.
|
||||||
|
|
||||||
### SELINUX
|
### SELINUX
|
||||||
All files and directories are configured with correct selinux context. If selinux is disabled, these contexts are ignored.
|
All files and directories are configured with correct selinux context. If selinux is disabled, these contexts are ignored.
|
||||||
|
|||||||
@@ -27,7 +27,8 @@ 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',
|
frontend_mode => 'http',
|
||||||
acl_rule => ['too_fast fe_sess_rate ge 10','network_allowed src 0.0.0.0/0'],
|
acl_rule => ['too_fast fe_sess_rate ge 10',
|
||||||
|
'network_allowed src 0.0.0.0/0'],
|
||||||
backend_name => 'test01-backend',
|
backend_name => 'test01-backend',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user