Keepalived

Parses /etc/keepalived/keepalived.conf

Summary
KeepalivedParses /etc/keepalived/keepalived.conf
Augeas Lenses
argumentArguments are key=value stanzas
lineLines are made of a name, followed by a list of one of more arguments separated by a space.
blockA block is a standard <Build.named_block> of lines
lnsThe lens is a series of blocks, with optional empty lines and comments before, between and after them.

Augeas Lenses

argument

let argument = let argument_re = Rx.word | /"[^\n"]*"/ in Build.key_value Rx.word Sep.equal (store argument_re)

Arguments are key=value stanzas

line

let line = let arguments = Build.opt_list argument Sep.space in Build.key_value Rx.word Sep.space arguments

Lines are made of a name, followed by a list of one of more arguments separated by a space.

block

let block = Build.named_block Rx.word line

A block is a standard <Build.named_block> of lines

lns

let lns = let empty_or_comment = (Util.empty Util.comment)* in

The lens is a series of blocks, with optional empty lines and comments before, between and after them.

let argument = let argument_re = Rx.word | /"[^\n"]*"/ in Build.key_value Rx.word Sep.equal (store argument_re)
Arguments are key=value stanzas
let line = let arguments = Build.opt_list argument Sep.space in Build.key_value Rx.word Sep.space arguments
Lines are made of a name, followed by a list of one of more arguments separated by a space.
let block = Build.named_block Rx.word line
A block is a standard Build.named_block of lines
let lns = let empty_or_comment = (Util.empty Util.comment)* in
The lens is a series of blocks, with optional empty lines and comments before, between and after them.
Close