feat: sydney haproxy cluster
- add au-syd1 halb cluster - add http-response to frontends - manage haproxy after enc_role is correct
This commit is contained in:
@@ -7,6 +7,7 @@ class profiles::proxmox::init {
|
||||
include profiles::proxmox::clusterjoin
|
||||
include profiles::proxmox::ceph
|
||||
include profiles::proxmox::config
|
||||
include profiles::proxmox::weblb
|
||||
|
||||
Class['profiles::proxmox::repos']
|
||||
-> Class['profiles::proxmox::install']
|
||||
|
||||
@@ -38,6 +38,7 @@ class profiles::proxmox::params (
|
||||
'ceph-volume',
|
||||
'gdisk',
|
||||
'nvme-cli'
|
||||
]
|
||||
],
|
||||
Stdlib::Port $pve_webport = 8006,
|
||||
){
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
# profiles::proxmox::weblb
|
||||
class profiles::proxmox::weblb {
|
||||
|
||||
# include params class
|
||||
include profiles::proxmox::params
|
||||
|
||||
# export haproxy balancemember
|
||||
profiles::haproxy::balancemember { "${facts['networking']['fqdn']}_${profiles::proxmox::params::pve_webport}}":
|
||||
service => "be_${facts['country']}${facts['region']}pve",
|
||||
ports => [$profiles::proxmox::params::pve_webport],
|
||||
options => [
|
||||
"cookie ${facts['networking']['hostname']}",
|
||||
'ssl',
|
||||
'verify none',
|
||||
'check',
|
||||
'inter 2s',
|
||||
'rise 3',
|
||||
'fall 2',
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user