You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: configuration/configuration.go
+43-43Lines changed: 43 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -36,45 +36,45 @@ import (
36
36
varcfg*Configuration
37
37
38
38
typeHAProxyConfigurationstruct {
39
-
ConfigFilestring`short:"c" long:"config-file" description:"Path to the haproxy configuration file" default:"/etc/haproxy/haproxy.cfg" group:"haproxy"`
40
-
Userliststring`short:"u" long:"userlist" description:"Userlist in HAProxy configuration to use for API Basic Authentication" default:"controller" group:"userlist"`
39
+
SpoeDirstring`long:"spoe-dir" description:"Path to SPOE directory." default:"/etc/haproxy/spoe" group:"resources"`
40
+
ServiceNamestring`long:"service" description:"Name of the HAProxy service" group:"reload"`
41
41
HAProxystring`short:"b" long:"haproxy-bin" description:"Path to the haproxy binary file" default:"haproxy" group:"haproxy"`
42
-
ReloadDelayint`short:"d" long:"reload-delay" description:"Minimum delay between two reloads (in s)" default:"5" group:"reload"`
42
+
UserListFilestring`long:"userlist-file" description:"Path to the dataplaneapi userlist file. By default userlist is read from HAProxy conf. When specified userlist would be read from this file" group:"userlist"`
ServiceNamestring`long:"service" description:"Name of the HAProxy service" group:"reload"`
47
-
ReloadRetentionint`long:"reload-retention" description:"Reload retention in days, every older reload id will be deleted" default:"1" group:"reload"`
46
+
NodeIDFilestring`long:"fid" description:"Path to file that will dataplaneapi use to write its id (not a pid) that was given to him after joining a cluster" group:"haproxy"`
47
+
PIDFilestring`long:"pid-file" description:"Path to file that will dataplaneapi use to write its pid" group:"dataplaneapi" example:"/tmp/dataplane.pid"`
48
48
ReloadStrategystring`long:"reload-strategy" description:"Either systemd, s6 or custom" default:"custom" group:"reload"`
49
49
TransactionDirstring`short:"t" long:"transaction-dir" description:"Path to the transaction directory" default:"/tmp/haproxy" group:"transaction"`
50
-
BackupsNumberint`short:"n" long:"backups-number" description:"Number of backup configuration files you want to keep, stored in the config dir with version number suffix" default:"0" group:"transaction"`
50
+
ValidateCmdstring`long:"validate-cmd" description:"Executes a custom command to perform the HAProxy configuration check" group:"reload"`
51
51
BackupsDirstring`long:"backups-dir" description:"Path to directory in which to place backup files" group:"transaction"`
52
-
MasterRuntimestring`short:"m" long:"master-runtime" description:"Path to the master Runtime API socket" group:"haproxy"`
53
-
ShowSystemInfobool`short:"i" long:"show-system-info" description:"Show system info on info endpoint" group:"dataplaneapi"`
54
-
DataplaneConfigstring`short:"f" description:"Path to the dataplane configuration file" default:"/etc/haproxy/dataplaneapi.hcl" yaml:"-"`
55
-
UserListFilestring`long:"userlist-file" description:"Path to the dataplaneapi userlist file. By default userlist is read from HAProxy conf. When specified userlist would be read from this file" group:"userlist"`
56
-
NodeIDFilestring`long:"fid" description:"Path to file that will dataplaneapi use to write its id (not a pid) that was given to him after joining a cluster" group:"haproxy"`
57
52
MapsDirstring`short:"p" long:"maps-dir" description:"Path to directory of map files managed by dataplane" default:"/etc/haproxy/maps" group:"resources"`
53
+
SpoeTransactionDirstring`long:"spoe-transaction-dir" description:"Path to the SPOE transaction directory" default:"/tmp/spoe-haproxy" group:"resources"`
54
+
DataplaneConfigstring`short:"f" description:"Path to the dataplane configuration file" default:"/etc/haproxy/dataplaneapi.hcl" yaml:"-"`
55
+
ConfigFilestring`short:"c" long:"config-file" description:"Path to the haproxy configuration file" default:"/etc/haproxy/haproxy.cfg" group:"haproxy"`
56
+
Userliststring`short:"u" long:"userlist" description:"Userlist in HAProxy configuration to use for API Basic Authentication" default:"controller" group:"userlist"`
57
+
MasterRuntimestring`short:"m" long:"master-runtime" description:"Path to the master Runtime API socket" group:"haproxy"`
58
58
SSLCertsDirstring`long:"ssl-certs-dir" description:"Path to SSL certificates directory" default:"/etc/haproxy/ssl" group:"resources"`
59
59
GeneralStorageDirstring`long:"general-storage-dir" description:"Path to general storage directory" default:"/etc/haproxy/general" group:"resources"`
60
-
UpdateMapFilesbool`long:"update-map-files" description:"Flag used for syncing map files with runtime maps values" group:"resources"`
61
-
UpdateMapFilesPeriodint64`long:"update-map-files-period" description:"Elapsed time in seconds between two maps syncing operations" default:"10" group:"resources"`
62
60
ClusterTLSCertDirstring`long:"cluster-tls-dir" description:"Path where cluster tls certificates will be stored. Defaults to same directory as dataplane configuration file" group:"cluster"`
63
-
SpoeDirstring`long:"spoe-dir" description:"Path to SPOE directory." default:"/etc/haproxy/spoe" group:"resources"`
64
-
SpoeTransactionDirstring`long:"spoe-transaction-dir" description:"Path to the SPOE transaction directory" default:"/tmp/spoe-haproxy" group:"resources"`
65
-
MasterWorkerModebool`long:"master-worker-mode" description:"Flag to enable helpers when running within HAProxy" group:"haproxy"`
61
+
UpdateMapFilesPeriodint64`long:"update-map-files-period" description:"Elapsed time in seconds between two maps syncing operations" default:"10" group:"resources"`
62
+
ReloadDelayint`short:"d" long:"reload-delay" description:"Minimum delay between two reloads (in s)" default:"5" group:"reload"`
66
63
MaxOpenTransactionsint64`long:"max-open-transactions" description:"Limit for active transaction in pending state" default:"20" group:"transaction"`
67
-
ValidateCmdstring`long:"validate-cmd" description:"Executes a custom command to perform the HAProxy configuration check" group:"reload"`
68
-
DisableInotifybool`long:"disable-inotify" description:"Disables inotify watcher for the configuration file" group:"dataplaneapi"`
69
-
PIDFilestring`long:"pid-file" description:"Path to file that will dataplaneapi use to write its pid" group:"dataplaneapi" example:"/tmp/dataplane.pid"`
64
+
BackupsNumberint`short:"n" long:"backups-number" description:"Number of backup configuration files you want to keep, stored in the config dir with version number suffix" default:"0" group:"transaction"`
65
+
ReloadRetentionint`long:"reload-retention" description:"Reload retention in days, every older reload id will be deleted" default:"1" group:"reload"`
70
66
UIDint`long:"uid" description:"User id value to set on start" group:"dataplaneapi" example:"1000"`
71
67
GIDint`long:"gid" description:"Group id value to set on start" group:"dataplaneapi" example:"1000"`
68
+
UpdateMapFilesbool`long:"update-map-files" description:"Flag used for syncing map files with runtime maps values" group:"resources"`
69
+
ShowSystemInfobool`short:"i" long:"show-system-info" description:"Show system info on info endpoint" group:"dataplaneapi"`
70
+
MasterWorkerModebool`long:"master-worker-mode" description:"Flag to enable helpers when running within HAProxy" group:"haproxy"`
71
+
DisableInotifybool`long:"disable-inotify" description:"Disables inotify watcher for the configuration file" group:"dataplaneapi"`
0 commit comments