3 Parses subscription-manager config files
5 Author: Dominic Cleal <dcleal@redhat.com>
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.
13 This file is licenced under the LGPL v2+, like the rest of Augeas.
18 About: Configuration files
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
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
38 let lns = IniFile.lns record comment
40 let filter = incl "/etc/rhsm/rhsm.conf"
42 let xfm = transform lns filter