install

package
v0.7.2-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HaproxyScriptTmpl = template.Must(template.New("HaproxyScriptTmpl").Parse(
		dedent.Dedent(`
#!/bin/bash
yum install -y haproxy
`)))

	HaProxyConfigTmpl = template.Must(template.New("HaProxyConfig").Parse(
		dedent.Dedent(`
global
   log /dev/log  local0 warning
   chroot      /var/lib/haproxy
   pidfile     /var/run/haproxy.pid
   maxconn     4000
   user        haproxy
   group       haproxy
   daemon

  stats socket /var/lib/haproxy/stats

defaults
 log global
 option  httplog
 option  dontlognull
       timeout connect 5000
       timeout client 50000
       timeout server 50000

{{- if .Balance }}

{{- range .Balance }}
{{ . }}
{{- end }}

{{- end}}
   `)))
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL