- configure deep merging in hiera - move fe_http and fe_https to hiera - configure pve backends for standard and api traffic
34 lines
942 B
Puppet
34 lines
942 B
Puppet
# 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_web",
|
|
ports => [$profiles::proxmox::params::pve_webport],
|
|
options => [
|
|
"cookie ${facts['networking']['hostname']}",
|
|
'ssl',
|
|
'verify none',
|
|
'check',
|
|
'inter 2s',
|
|
'rise 3',
|
|
'fall 2',
|
|
]
|
|
}
|
|
profiles::haproxy::balancemember { "${facts['networking']['fqdn']}_${profiles::proxmox::params::pve_webport}_api2}":
|
|
service => "be_${facts['country']}${facts['region']}pve_api",
|
|
ports => [$profiles::proxmox::params::pve_webport],
|
|
options => [
|
|
'ssl',
|
|
'verify none',
|
|
'check',
|
|
'inter 2s',
|
|
'rise 3',
|
|
'fall 2',
|
|
]
|
|
}
|
|
}
|