1 (* Puppet module for Augeas
2 Author: Raphael Pinson <raphink@gmail.com>
4 puppet.conf is a standard INI File.
11 (************************************************************************
14 * puppet.conf only supports "# as commentary and "=" as separator
15 *************************************************************************)
16 let comment = IniFile.comment "#" "#"
17 let sep = IniFile.sep "=" "="
20 (************************************************************************
22 * puppet.conf uses standard INI File entries
23 *************************************************************************)
24 let entry = IniFile.indented_entry IniFile.entry_re sep comment
27 (************************************************************************
29 * puppet.conf uses standard INI File records
30 *************************************************************************)
31 let title = IniFile.indented_title IniFile.record_re
32 let record = IniFile.record title entry
35 (************************************************************************
37 * puppet.conf uses standard INI File records
38 *************************************************************************)
39 let lns = IniFile.lns record comment
41 let filter = (incl "/etc/puppet/puppet.conf")
43 let xfm = transform lns filter