feat: add puppetdbapi to haproxy
- add puppetdbapi backend to haproxy - add puppetdbapi altname to the vault certificate - add mapping for hostname to backend
This commit is contained in:
@@ -18,4 +18,16 @@ class profiles::puppet::puppetdb_api (
|
||||
export_scrape_job => true,
|
||||
}
|
||||
|
||||
# export haproxy balancemember
|
||||
profiles::haproxy::balancemember { "${facts['networking']['fqdn']}_8080":
|
||||
service => 'be_puppetdbapi',
|
||||
ports => [8080],
|
||||
options => [
|
||||
"cookie ${facts['networking']['hostname']}",
|
||||
'check',
|
||||
'inter 2s',
|
||||
'rise 3',
|
||||
'fall 2',
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user