feat: add frontends, backends, listeners
- add a way to define frontends, backends and listeners through hieradata
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# profiles::haproxy::frontends
|
||||
class profiles::haproxy::frontends {
|
||||
|
||||
# for each frontend:
|
||||
$frontends = lookup('profiles::haproxy::frontends', Hash, 'deep', {})
|
||||
$frontends.each |$frontend, $data| {
|
||||
|
||||
# create frontends
|
||||
haproxy::frontend { $frontend:
|
||||
* => $data,
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user