-
Notifications
You must be signed in to change notification settings - Fork 9
Configuration File
khosrow edited this page Nov 23, 2014
·
7 revisions
On startup lvsm looks for a configuration file. By the default the program will look for /etc/lvsm.conf , but it is not required and the program will function without it.
The configuration file can also be specified on the command line
$ lvsm --config=configfile
A sample configuration file is supplied with the package with the defaults mentioned.
Comments start with # to the end of the line and can start anywhere in a line. Apart from items mentioned below, any other directives are invalid and result in an error message.
General
Director
Firewall
Source Control
SNMP
-
ipvsadm: Location of the ipvsadm binary.
- Default:
ipvsadm
- Default:
-
iptables: Location of the iptables binary.
- Default:
iptables
- Default:
-
pager: Terminal paging program to use.
- Default:
/bin/more
- Default:
-
cache_dir: Cache directory used to store working files.
- Default:
/var/cache/lvsm
- Default:
- nodes: Comma separated list of nodes in the cluster.
-
director: The type of director used for ipvs. Valid values are one of
ldirectordorkeepalived. - director_bin: Path to the binary of the director program.
- director_cmd: Command to reload the director configuration.
- director_config: Location of the director configuration file.
-
parse_director_config: Whether or not to parse the director config file before saving it. Valid values are
yesorno. Defaults toyes. - template_lang: Path to the templating language used in building the director config. This item can be useful with keepalived where the configuration files can be different between nodes in the cluster.
- firewall_config: Location of the iptables configuration file.
- firewall_cmd: Command used to reload the iptables configuration.
This section is only needed if users wish lvsm to manage all the configuration files.
-
version_control: SCM used for versioning configs. Valid values are one of
svnorgit. -
git_remote: Remote used to perform the
git pulloperation. - git_repo: Local location where the git repository is located.
SNMP is only used if the version of keepalived supports it. It is used by lvsm to enable/disable real servers.
-
keepalived-mib: Path to the KEEPALIVED-MIB file.
- Default:
KEEPALIVED-MIB
- Default:
- snmp_community: Community name with read and write permission.
- snmp_host: Hostname with the read and write permissions.
- snmp_user: Username if authentication is needed.
- snmp_password: Password for the SNMP user.
# this line is a comment
director_config = /etc/ha.d/ldirectord.cf
firewall_config = /etc/iptables.rules
nodes = lb1, lb2