Bump to 1.14.1
[platform/upstream/augeas.git] / lenses / rhsm.aug
1 (*
2 Module: Rhsm
3   Parses subscription-manager config files
4
5 Author: Dominic Cleal <dcleal@redhat.com>
6
7 About: Reference
8   This lens tries to keep as close as possible to rhsm.conf(5) and
9   Python's SafeConfigParser.  All settings must be in sections without
10   indentation.  Semicolons and hashes are permitted for comments.
11
12 About: License
13   This file is licenced under the LGPL v2+, like the rest of Augeas.
14
15 About: Lens Usage
16   To be documented
17
18 About: Configuration files
19   This lens applies to:
20     /etc/rhsm/rhsm.conf
21
22   See <filter>.
23 *)
24
25 module Rhsm =
26   autoload xfm
27
28 (* Semicolons and hashes are permitted for comments *)
29 let comment = IniFile.comment IniFile.comment_re "#"
30 (* Equals and colons are permitted for separators *)
31 let sep     = IniFile.sep IniFile.sep_re IniFile.sep_default
32
33 (* All settings must be in sections without indentation *)
34 let entry   = IniFile.entry_multiline IniFile.entry_re sep comment
35 let title   = IniFile.title IniFile.record_re
36 let record  = IniFile.record title entry
37
38 let lns     = IniFile.lns record comment
39
40 let filter  = incl "/etc/rhsm/rhsm.conf"
41
42 let xfm     = transform lns filter