HAProxy Enterprise Documentation 1.8r2
add map
Add an entry to a Map file.
Description
A Map file contains a list of key-value pairs. You can reference the file on an acl
line by using the -M
and -f /path/to/file
flags. Use add map
to add a new entry to a Map file. Note that this only adds it to HAProxy Enterprise's runtime memory and not to the file on disk.
Examples
In this example, the key foo.example.com and value be_bar are added as a new line in the file /etc/hapee-1.8/maps/hosts.map.
$ echo "add map /etc/hapee-1.8/maps/hosts.map foo.example.com be_bar" | socat stdio tcp4-connect:127.0.0.1:9999
See also
Next up
clear acl