lvsm

a shell to manage LVS and iptables

View the Project on GitHub khosrow/lvsm

lvsm provides a command shell to manage a Linux Virtual Server (LVS) as a unified system and aims to simplify the management of such systems. The program assumes a Linux server running IPVS with iptables rules as firewall.

Build

$ cd lvsm-<version>
$ python setup.py sdist

Install

$ cd lvsm-<version>
$ cd dist
$ pip install lvsm-<version>.tar.gz

Configure

The configuration file can be specified on the command line

$ lvsm --config=configfile

Otherwise the program will look for /etc/lvsm.conf to use.

Valid configuration directives are as follows:

All other directives are invalid and cause an error message. Further, lines beginning with # are considered
comments and will not be parsed.

example:

# this line is a comment
director_config = /etc/ha.d/ldirectord.cf
firewall_config = /etc/iptables.rules
nodes = lb1, lb2

Use

See the project README for usage instructions.