This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# sorted_json.rb | |
# Puppet module for outputting json in a sorted consistent way. I use it for creating config files with puppet | |
require 'json' | |
def sorted_json(json) | |
if (json.kind_of? String) | |
return json.to_json | |
elsif (json.kind_of? Array) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
Module: Named | |
parses /etc/namedb/named.conf | |
Author: Mathieu Arnold <mat@FreeBSD.org> | |
About: Reference | |
This lens tries to keep as close as possible to the bind documentation where | |
possible. An online source being : | |
http://www.freebsd.org/cgi/man.cgi?query=syslog.conf&sektion=5 |