3 Parses AFS configuration file CellAlias
5 Author: Pat Riehecky <riehecky@fnal.gov>
8 This lens is targeted at the OpenAFS CellAlias file
11 Sample usage of this lens in augtool
13 * Add a CellAlias for fnal.gov/files to fnal-files
14 > set /files/usr/vice/etc/CellAlias/target[99] fnal.gov/files
15 > set /files/usr/vice/etc/CellAlias/target[99]/linkname fnal-files
18 This file is licensed under the LGPL v2+, like the rest of Augeas.
21 module AFS_cellalias =
24 (************************************************************************
25 * Group: USEFUL PRIMITIVES
26 *************************************************************************)
28 (* Group: Comments and empty lines *)
33 let comment = Util.comment
35 let empty = Util.empty
37 (* Group: separators *)
40 * Separation between key and value
42 let space = Util.del_ws_spc
43 let target = /[^ \t\n#]+/
44 let linkname = Rx.word
46 (************************************************************************
48 *************************************************************************)
51 let entry = [ label "target" . store target . space . [ label "linkname" . store linkname . eol ] ]
54 let lns = (empty | comment | entry)*
56 let xfm = transform lns (incl "/usr/vice/etc/CellAlias")
58 (* Local Variables: *)