diff options
Diffstat (limited to 'README')
-rw-r--r-- | README | 46 |
1 files changed, 46 insertions, 0 deletions
@@ -0,0 +1,46 @@ | |||
1 | Config::HAProxy | ||
2 | =============== | ||
3 | |||
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: | ||
6 | searching, modifying and saving it to a file. | ||
7 | |||
8 | EXAMPLE | ||
9 | |||
10 | use Config::HAProxy; | ||
11 | |||
12 | # Parse HAProxy configuration file | ||
13 | $cfg = Config::HAProxy->new->parse; | ||
14 | |||
15 | # Print IP addresses and ports of the configured backends | ||
16 | foreach my $srv (map { $_->select(name => 'server') } | ||
17 | $cfg->tree->select(name => 'backend')) { | ||
18 | print $srv->arg(1),"\n"; | ||
19 | } | ||
20 | |||
21 | |||
22 | INSTALLATION | ||
23 | |||
24 | To install this module type the following: | ||
25 | |||
26 | perl Makefile.PL | ||
27 | make | ||
28 | make test | ||
29 | make install | ||
30 | |||
31 | COPYRIGHT AND LICENCE | ||
32 | |||
33 | Copyright (C) 2018 by Sergey Poznyakoff | ||
34 | |||
35 | This library is free software; you can redistribute it and/or modify it | ||
36 | under the terms of the GNU General Public License as published by the | ||
37 | Free Software Foundation; either version 3 of the License, or (at your | ||
38 | option) any later version. | ||
39 | |||
40 | It is distributed in the hope that it will be useful, | ||
41 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
42 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
43 | GNU General Public License for more details. | ||
44 | |||
45 | You should have received a copy of the GNU General Public License along | ||
46 | with this library. If not, see <http://www.gnu.org/licenses/>. | ||