adds service control and updates README
This commit is contained in:
13
README.md
13
README.md
@@ -38,6 +38,7 @@ CONFIGURATION
|
|||||||
* manage haproxy user
|
* manage haproxy user
|
||||||
* manage directories (file system permissions, selinux context)
|
* manage directories (file system permissions, selinux context)
|
||||||
* manage files (file system permissions, content, selinux context)
|
* manage files (file system permissions, content, selinux context)
|
||||||
|
* manage proxy instances through a define
|
||||||
|
|
||||||
SERVICE
|
SERVICE
|
||||||
* manage haproxy service
|
* manage haproxy service
|
||||||
@@ -82,7 +83,19 @@ The [full list of Parameters](https://confdroid.com/2017/08/cd_haproxy-parameter
|
|||||||
|
|
||||||
#### Optional Parameters
|
#### Optional Parameters
|
||||||
|
|
||||||
|
### Proxy Configuration
|
||||||
|
The proxy instances are configured in /etc/haproxy/haproxy.cfg, which is concatenated from various templates through a define in this puppet module.
|
||||||
|
In order to create proxy instances, you will need an external class, which addresses the define, like so:
|
||||||
|
|
||||||
|
```
|
||||||
|
cd_haproxy::server::proxy { 'testing':
|
||||||
|
frontend_name => 'test01-frontend',
|
||||||
|
acl_rule => 'test01-acl',
|
||||||
|
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.
|
||||||
|
|
||||||
### 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.
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ class cd_haproxy::server::service (
|
|||||||
hasstatus => true,
|
hasstatus => true,
|
||||||
hasrestart => true,
|
hasrestart => true,
|
||||||
enable => true,
|
enable => true,
|
||||||
|
subscribe => $hy_main_config,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user