summaryrefslogtreecommitdiff
path: root/lib/Config/HAProxy.pm
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-05-26 09:20:32 +0300
committerSergey Poznyakoff <gray@gnu.org>2019-05-26 09:33:43 +0300
commitf12defd06dfab84dd5a6a1d6f9839d6bb3af2c62 (patch)
tree7f7b3c3f3a2fe45161e2855c9a9ce73a67dfc612 /lib/Config/HAProxy.pm
parent585a5a925342c357d46fbad273bfafc03bc33dcd (diff)
downloadconfig-haproxy-f12defd06dfab84dd5a6a1d6f9839d6bb3af2c62.tar.gz
config-haproxy-f12defd06dfab84dd5a6a1d6f9839d6bb3af2c62.tar.bz2
Config::HAProxy version 1.03v1.03
Diffstat (limited to 'lib/Config/HAProxy.pm')
-rw-r--r--lib/Config/HAProxy.pm18
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/Config/HAProxy.pm b/lib/Config/HAProxy.pm
index ff4fa8a..794a80f 100644
--- a/lib/Config/HAProxy.pm
+++ b/lib/Config/HAProxy.pm
@@ -16,7 +16,7 @@ use File::Spec;
16use IPC::Cmd; 16use IPC::Cmd;
17use Carp; 17use Carp;
18 18
19our $VERSION = '1.01'; 19our $VERSION = '1.03';
20 20
21my %sections = ( 21my %sections = (
22 global => 1, 22 global => 1,
@@ -429,10 +429,11 @@ Returns the last node in the tree.
429 429
430=head2 lint 430=head2 lint
431 431
432 $cfg->lint(%ARGS); 432 $cfg->lint(%hash);
433 433
434Configures syntax checking program to be run before saving. Takes a 434Configures configuration syntax check. The check will be run by the B<save>
435hash as argument. Allowed keys are: 435method prior to writing to the configuration file. Takes a hash as argument.
436Allowed keys are:
436 437
437=over 4 438=over 4
438 439
@@ -442,7 +443,8 @@ If I<BOOL> is 0, disables syntax check. Default is 1.
442 443
443=item B<command =E<gt> I<CMD>> 444=item B<command =E<gt> I<CMD>>
444 445
445Configures the command to use for syntax check. The command will be run as 446Defines the shell command to use for syntax check. The command will be run
447as
446 448
447 CMD FILE 449 CMD FILE
448 450
@@ -452,7 +454,7 @@ Default command is B<haproxy -c -f>.
452 454
453=item B<path =E<gt> I<PATH>> 455=item B<path =E<gt> I<PATH>>
454 456
455Sets the search path for the check program. I<PATH> is a colon-delimited 457Sets the search path for the syntax checker. I<PATH> is a colon-delimited
456list of directories. Unless the first word of B<command> is an absolute 458list of directories. Unless the first word of B<command> is an absolute
457file name, it will be looked for in these directories. The first match 459file name, it will be looked for in these directories. The first match
458will be used. Default is system B<$PATH>. 460will be used. Default is system B<$PATH>.
@@ -467,8 +469,8 @@ Returns the command name.
467 469
468Saves the parse tree in the configuration file. Syntax check will be run 470Saves the parse tree in the configuration file. Syntax check will be run
469prior to saving (unless previously disabled). If syntax errors are discovered, 471prior to saving (unless previously disabled). If syntax errors are discovered,
470the method will B<croak> with the appropriate diagnostics, beginning with 472the method will B<croak> with a diagnostic message starting with words
471words C<Syntax check failed:>. 473C<Syntax check failed:>.
472 474
473If I<%hash> contains a non-zero B<dry_run> value, B<save> will only run syntax 475If I<%hash> contains a non-zero B<dry_run> value, B<save> will only run syntax
474check, without actually saving the file. If B<$cfg-E<gt>lint(enable =E<gt> 0)> 476check, without actually saving the file. If B<$cfg-E<gt>lint(enable =E<gt> 0)>

Return to:

Send suggestions and report system problems to the System administrator.