Parses /etc/cachefilesd.conf
Author: Pat Riehecky riehecky@fnal.gov
| Cachefilesd | Parses /etc/cachefilesd.conf |
| Reference | This lens tries to keep as close as possible to `man 5 cachefilesd.conf` where possible. |
| License | This file is licenced under the LGPL v2+, like the rest of Augeas. |
| Lens Usage | See lns. |
| Configuration files | This lens applies to /etc/cachefilesd.conf. |
| Examples | The <Test_Cachefilesd> file contains various examples and tests. |
| USEFUL PRIMITIVES | |
| Comments and empty lines | |
| eol | |
| comment | |
| empty | |
| separators | |
| space | Separation between key and value |
| colon | Separation between selinux attributes |
| entries | |
| entry_key | The key for an entry in the config file |
| entry_value | The value for an entry may contain all sorts of things |
| nocull | The nocull key has different syntax than the rest |
| config | |
| cacheconfig | This is a simple “key value” setup |
| nocull | This is a either present, and therefore active or missing and not active |
| lns |
See lns.
let lns = (empty | comment | cacheconfig | nocull_entry)*
let eol = Util.eol
let comment = Util.comment
let empty = Util.empty
Separation between key and value
let space = Util.del_ws_spc
Separation between selinux attributes
let colon = Sep.colon
The key for an entry in the config file
let entry_key = Rx.word
The value for an entry may contain all sorts of things
let entry_value = /[A-Za-z0-9_.-:%]+/
The nocull key has different syntax than the rest
let nocull = /nocull/i
This is a simple “key value” setup
let cacheconfig = [ key (entry_key - nocull) . space . store entry_value . eol ]