|
Packit Service |
a2ae7a |
(*
|
|
Packit Service |
a2ae7a |
Module: Rhsm
|
|
Packit Service |
a2ae7a |
Parses subscription-manager config files
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
Author: Dominic Cleal <dcleal@redhat.com>
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
About: Reference
|
|
Packit Service |
a2ae7a |
This lens tries to keep as close as possible to rhsm.conf(5) and
|
|
Packit Service |
a2ae7a |
Python's SafeConfigParser. All settings must be in sections without
|
|
Packit Service |
a2ae7a |
indentation. Semicolons and hashes are permitted for comments.
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
About: License
|
|
Packit Service |
a2ae7a |
This file is licenced under the LGPL v2+, like the rest of Augeas.
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
About: Lens Usage
|
|
Packit Service |
a2ae7a |
To be documented
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
About: Configuration files
|
|
Packit Service |
a2ae7a |
This lens applies to:
|
|
Packit Service |
a2ae7a |
/etc/rhsm/rhsm.conf
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
See <filter>.
|
|
Packit Service |
a2ae7a |
*)
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
module Rhsm =
|
|
Packit Service |
a2ae7a |
autoload xfm
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* Semicolons and hashes are permitted for comments *)
|
|
Packit Service |
a2ae7a |
let comment = IniFile.comment IniFile.comment_re "#"
|
|
Packit Service |
a2ae7a |
(* Equals and colons are permitted for separators *)
|
|
Packit Service |
a2ae7a |
let sep = IniFile.sep IniFile.sep_re IniFile.sep_default
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
(* All settings must be in sections without indentation *)
|
|
Packit Service |
a2ae7a |
let entry = IniFile.entry_multiline IniFile.entry_re sep comment
|
|
Packit Service |
a2ae7a |
let title = IniFile.title IniFile.record_re
|
|
Packit Service |
a2ae7a |
let record = IniFile.record title entry
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
let lns = IniFile.lns record comment
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
let filter = incl "/etc/rhsm/rhsm.conf"
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
let xfm = transform lns filter
|