Cachefilesd

Parses /etc/cachefilesd.conf

Author: Pat Riehecky rieh.nosp@m.ecky@fnal.nosp@m..gov

Summary
CachefilesdParses /etc/cachefilesd.conf
ReferenceThis lens tries to keep as close as possible to `man 5 cachefilesd.conf` where possible.
LicenseThis file is licenced under the LGPL v2+, like the rest of Augeas.
Lens UsageSee lns.
Configuration filesThis lens applies to /etc/cachefilesd.conf.
ExamplesThe <Test_Cachefilesd> file contains various examples and tests.
USEFUL PRIMITIVES
Comments and empty lines
eol
comment
empty
separators
spaceSeparation between key and value
colonSeparation between selinux attributes
entries
entry_keyThe key for an entry in the config file
entry_valueThe value for an entry may contain all sorts of things
nocullThe nocull key has different syntax than the rest
config
cacheconfigThis is a simple “key value” setup
nocullThis is a either present, and therefore active or missing and not active
lns

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

   let eol   = Util.eol

comment

   let comment = Util.comment

empty

   let empty = Util.empty

separators

space

   let space = Util.del_ws_spc

Separation between key and value

colon

   let colon = Sep.colon

Separation between selinux attributes

entries

entry_key

   let entry_key = Rx.word

The key for an entry in the config file

entry_value

   let entry_value = /[A-Za-z0-9_.-:%]+/

The value for an entry may contain all sorts of things

nocull

   let nocull = /nocull/i

The nocull key has different syntax than the rest

config

cacheconfig

   let cacheconfig = [ key (entry_key - nocull) . space . store entry_value . eol ]

This is a simple “key value” setup

nocull

   let nocull_entry = [ key nocull . eol ]

This is a either present, and therefore active or missing and not active

lns

  let lns = (empty | comment | cacheconfig | nocull_entry)*
  let lns = (empty | comment | cacheconfig | nocull_entry)*
   let eol   = Util.eol
   let comment = Util.comment
   let empty = Util.empty
   let space = Util.del_ws_spc
Separation between key and value
   let colon = Sep.colon
Separation between selinux attributes
   let entry_key = Rx.word
The key for an entry in the config file
   let entry_value = /[A-Za-z0-9_.-:%]+/
The value for an entry may contain all sorts of things
   let nocull = /nocull/i
The nocull key has different syntax than the rest
   let cacheconfig = [ key (entry_key - nocull) . space . store entry_value . eol ]
This is a simple “key value” setup
Close