creates the main conffig target and header

This commit is contained in:
Arne Teuke
2018-12-10 15:56:28 +01:00
parent 2f3afa420b
commit e64adc8f82
6 changed files with 58 additions and 19 deletions

View File

@@ -39,34 +39,36 @@
##############################################################################
class cd_haproxy::params (
$pkg_ensure = 'latest',
$reqpackages = ['haproxy'],
$pkg_ensure = 'latest',
$reqpackages = ['haproxy'],
$hy_host_fqdn = "proxy.${::domain}",
$hy_host_fqdn = "proxy.${::domain}",
# firewall
$hy_manage_fw = true,
$hy_fw_order_no = '50',
$hy_manage_fw = true,
$hy_fw_order_no = '50',
# main config
$hy_http_port = '80',
$hy_https_port = '443',
$hy_http_port = '80',
$hy_https_port = '443',
# user
$hy_user_name = 'haproxy',
$hy_user_comment = 'haproxy user',
$hy_user_home = '/var/lib/haproxy',
$hy_user_shell = '/sbin/nologin',
$hy_user_name = 'haproxy',
$hy_user_comment = 'haproxy user',
$hy_user_home = '/var/lib/haproxy',
$hy_user_shell = '/sbin/nologin',
) {
# service
$hy_service = 'haproxy'
$hy_service = 'haproxy'
# directories
$hy_main_dir = '/etc/haproxy'
# files
$hy_main_config = "${hy_main_dir}/haproxy.cfg"
$hy_config_head_erb = 'cd_puppet/haproxy_head.erb'
# includes must be last