22.27.65. salt.states.lvs_server

22.27.65.1. Management of LVS (Linux Virtual Server) Real Server

salt.states.lvs_server.absent(name, protocol=None, service_address=None, server_address=None)

Ensure the LVS Real Server in specified service is absent.

name
The name of the LVS server.
protocol
The service protocol(only support tcp, udp and fwmark service).
service_address
The LVS service address.
server_address
The LVS real server address.
salt.states.lvs_server.present(name, protocol=None, service_address=None, server_address=None, packet_forward_method='dr', weight=1)

Ensure that the named service is present.

name
The LVS server name
protocol
The service protocol
service_address
The LVS service address
server_address
The real server address.
packet_forward_method
The LVS packet forwarding method(dr for direct routing, tunnel for tunneling, nat for network access translation).
weight
The capacity of a server relative to the others in the pool.
lvsrs:
  lvs_server.present:
    - protocol: tcp
    - service_address: 1.1.1.1:80
    - server_address: 192.168.0.11:8080
    - packet_forward_method: dr
    - weight: 10

Docs for previous releases are available on readthedocs.org.

Latest Salt release: 2014.7.2

Table Of Contents

Previous topic

22.27.64. salt.states.lvm

Next topic

22.27.66. salt.states.lvs_service