diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-07-08 22:24:05 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-07-08 22:24:05 +0300 |
commit | 78ec9c89274273bd864089c3fb10f62319790dec (patch) | |
tree | 2795cfcdbb8c324aea9748cbacaecc85e95803d3 | |
parent | 69ff9c1766ed89edf0ffdb63bf487396b6bd081b (diff) | |
download | config-haproxy-78ec9c89274273bd864089c3fb10f62319790dec.tar.gz config-haproxy-78ec9c89274273bd864089c3fb10f62319790dec.tar.bz2 |
Minor changes
-rw-r--r-- | MANIFEST.SKIP | 1 | ||||
-rw-r--r-- | README | 14 |
2 files changed, 8 insertions, 7 deletions
diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP index 3429457..c1d2412 100644 --- a/MANIFEST.SKIP +++ b/MANIFEST.SKIP | |||
@@ -57,6 +57,7 @@ | |||
57 | 57 | ||
58 | ^debug.sh | 58 | ^debug.sh |
59 | ^tmp | 59 | ^tmp |
60 | ^\.emacs\.* | 60 | ^\.emacs\.* |
61 | \.tar$ | 61 | \.tar$ |
62 | \.tar\.gz$ | 62 | \.tar\.gz$ |
63 | Config/HAProxy/VirtualHost.pm | ||
@@ -4,22 +4,22 @@ Config::HAProxy | |||
4 | A parser class that converts the HAProxy configuration file to a parse | 4 | A parser class that converts the HAProxy configuration file to a parse |
5 | tree and provides methods for various operations on this tree, such as: | 5 | tree and provides methods for various operations on this tree, such as: |
6 | searching, modifying and saving it to a file. | 6 | searching, modifying and saving it to a file. |
7 | 7 | ||
8 | EXAMPLE | 8 | EXAMPLE |
9 | 9 | ||
10 | use Config::HAProxy; | 10 | use Config::HAProxy; |
11 | 11 | ||
12 | # Parse HAProxy configuration file | 12 | # Parse HAProxy configuration file |
13 | $cfg = Config::HAProxy->new->parse; | 13 | $cfg = Config::HAProxy->new->parse; |
14 | 14 | ||
15 | # Print IP addresses and ports of the configured backends | 15 | # Print IP addresses and ports of the configured backends |
16 | foreach my $srv (map { $_->select(name => 'server') } | 16 | foreach my $srv (map { $_->select(name => 'server') } |
17 | $cfg->tree->select(name => 'backend')) { | 17 | $cfg->tree->select(name => 'backend')) { |
18 | print $srv->arg(1),"\n"; | 18 | print $srv->arg(1),"\n"; |
19 | } | 19 | } |
20 | 20 | ||
21 | 21 | ||
22 | INSTALLATION | 22 | INSTALLATION |
23 | 23 | ||
24 | To install this module type the following: | 24 | To install this module type the following: |
25 | 25 | ||