3 Parses /etc/cachefilesd.conf
5 Author: Pat Riehecky <riehecky@fnal.gov>
8 This lens tries to keep as close as possible to `man 5 cachefilesd.conf` where possible.
11 This file is licenced under the LGPL v2+, like the rest of Augeas.
16 About: Configuration files
17 This lens applies to /etc/cachefilesd.conf.
20 The <Test_Cachefilesd> file contains various examples and tests.
26 (************************************************************************
27 * Group: USEFUL PRIMITIVES
28 *************************************************************************)
30 (* Group: Comments and empty lines *)
35 let comment = Util.comment
37 let empty = Util.empty
39 (* Group: separators *)
42 * Separation between key and value
44 let space = Util.del_ws_spc
47 * Separation between selinux attributes
54 * The key for an entry in the config file
56 let entry_key = Rx.word
59 * The value for an entry may contain all sorts of things
61 let entry_value = /[A-Za-z0-9_.-:%]+/
64 * The nocull key has different syntax than the rest
66 let nocull = /nocull/i
71 * This is a simple "key value" setup
73 let cacheconfig = [ key (entry_key - nocull) . space
74 . store entry_value . eol ]
77 * This is a either present, and therefore active or missing and
80 let nocull_entry = [ key nocull . eol ]
83 let lns = (empty | comment | cacheconfig | nocull_entry)*
85 let xfm = transform lns (incl "/etc/cachefilesd.conf")
87 (* Local Variables: *)