Puppet Class: cd_haproxy::params
- Inherited by:
-
cd_haproxy::main::dirs
cd_haproxy::main::user
cd_haproxy::main::files
cd_haproxy::main::config
cd_haproxy::main::install
cd_haproxy::server::service
cd_haproxy::firewall::iptables
cd_haproxy::monitoring::fail2ban
- Defined in:
- manifests/params.pp
Overview
cd_haproxy::params.pp Module name: cd_haproxy Author: Arne Teuke (arne_teuke@confdroid.com)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'manifests/params.pp', line 58
class cd_haproxy::params (
$pkg_ensure = 'latest',
$reqpackages = ['haproxy'],
$hy_host_fqdn = undef,
# firewall
$hy_manage_fw = true,
$hy_fw_order_no = '50',
# fail2ban
$hy_manage_fail2ban = false,
# main config
$hy_http_port = '80',
$hy_https_port = '443',
$hy_chroot = '/var/lib/haproxy',
$hy_pid = '/var/run/haproxy.pid',
$hy_maxconn = '4000',
$hy_show_stats = false,
$hy_stats_socket = '/var/lib/haproxy/stats',
$hy_default_mode = 'tcp',
$hy_use_http_server_close = false,
$hy_use_forward_for = false,
$hy_use_redispatch = true,
$hy_max_retries = '3',
$hy_timeout_http_request = '10s',
$hy_timeout_queue = '1m',
$hy_timeout_connect = '10s',
$hy_timeout_client = '1m',
$hy_timeout_server = '1m',
$hy_timeout_http_keep_alive = '10s',
$hy_timeout_check = '10s',
$hy_hard_stop = true,
$hy_hard_stop_value = '60s',
# user
$hy_user_name = 'haproxy',
$hy_user_comment = 'haproxy user',
$hy_user_home = '/var/lib/haproxy',
$hy_user_shell = '/sbin/nologin',
# logging
$hy_log_local0 = '/dev/log local0',
$hy_log_local1 = '/dev/log local1 notice',
$hy_log_target = '127.0.0.1',
$hy_log_facility = 'local2',
$hy_log_default = 'global',
$hy_use_tcplog = true,
$hy_use_httplog = false,
$hy_use_dontlognull = true,
) {
# service
$hy_service = 'haproxy'
# directories
$hy_main_dir = '/etc/haproxy'
$hy_errors_dir = "${hy_main_dir}/errors"
# files
$hy_main_config = "${hy_main_dir}/haproxy.cfg"
$hy_config_head_erb = 'cd_haproxy/haproxy_head.erb'
$hy_config_tail_erb = 'cd_haproxy/haproxy_tail.erb'
$hy_400_file = "${hy_errors_dir}/400.http"
$hy_400_erb = 'cd_haproxy/errors/400_http.erb'
$hy_403_file = "${hy_errors_dir}/403.http"
$hy_403_erb = 'cd_haproxy/errors/403_http.erb'
$hy_408_file = "${hy_errors_dir}/408.http"
$hy_408_erb = 'cd_haproxy/errors/408_http.erb'
$hy_500_file = "${hy_errors_dir}/500.http"
$hy_500_erb = 'cd_haproxy/errors/500_http.erb'
$hy_502_file = "${hy_errors_dir}/502.http"
$hy_502_erb = 'cd_haproxy/errors/502_http.erb'
$hy_503_file = "${hy_errors_dir}/503.http"
$hy_503_erb = 'cd_haproxy/errors/503_http.erb'
$hy_504_file = "${hy_errors_dir}/504.http"
$hy_504_erb = 'cd_haproxy/errors/504_http.erb'
# includes must be last
include cd_haproxy::main::config
}
|