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
#!/usr/bin/env ruby | |
require 'jgrep' | |
def get_facts(facter_version, filter) | |
filter_str = filter.map { |f| f.map { |k,v | "#{k}=#{v}" }.join(' and ') }.join(' or ') | |
jsons = Dir.glob("facts/#{facter_version}/*.facts").map { |f| File.read(f) } | |
json = "[#{jsons.join(',')}]\n" | |
JGrep.jgrep(json, filter_str) |
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
--- html4.4ht 2014-02-19 14:10:25.634970719 +0100 | |
+++ html4.4ht.new 2014-02-19 14:10:41.518970055 +0100 | |
@@ -30066,7 +30066,7 @@ | |
\Configure{frenchup}{\HCode{<sup class="french">}}{\HCode{</sup>}} | |
\Css{sup.french{ | |
vertical-align:super; | |
-font-size:70%; | |
+font-size:70\%; | |
}} | |
\renewcommand\fup[1]{\a:frenchup#1\b:frenchup} |
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
Which lens are you using? | |
The official lens for Splunk (in Augeas 1.2.0) maps this file to: | |
/files/opt/splunk/etc/system/local/server.conf | |
/files/opt/splunk/etc/system/local/server.conf/target[1] = "queue" | |
/files/opt/splunk/etc/system/local/server.conf/target[1]/maxSize = "600MB" | |
/files/opt/splunk/etc/system/local/server.conf/target[2] = "queue=parsingQueue" | |
/files/opt/splunk/etc/system/local/server.conf/target[2]/maxSize = "6MB" |
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
#!/usr/bin/perl | |
use Config::Augeas; | |
use warnings; | |
use strict; | |
my $aug_root = '/home/rpinson/bas/augeas'; | |
my $aug = Config::Augeas->new(root => $aug_root); |
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
topicprefix = /topic/ | |
main_collective = mcollective | |
collectives = mcollective | |
libdir = /usr/libexec/mcollective | |
logfile = /var/log/mcollective.log | |
loglevel = info | |
daemonize = 1 | |
direct_addressing = 1 | |
# Plugins |
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
=ERROR REPORT==== 18-Mar-2014::14:11:59 === | |
{mochiweb_socket_server,295,{acceptor_error,{error,accept_failed}}} | |
=ERROR REPORT==== 18-Mar-2014::14:11:59 === | |
application: mochiweb | |
"Accept failed error" | |
"{error,emfile}" |
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
$maxmem = 1024*0.6*$memorysize_mb | |
augeas { "sysctl_conf": | |
context => "/files/etc/sysctl.conf", | |
changes => [ | |
"set kernel.shmmax ${maxmem}" | |
], | |
} | |
exec { "sysctl_conf_reload": |
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 Haproxy = | |
autoload xfm | |
(************************************************************************ | |
* Group: USEFUL PRIMITIVES | |
*************************************************************************) | |
(* Group: Separators *) |
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: Simplevars | |
Parses simple key = value conffiles | |
Author: Raphael Pinson <raphink@gmail.com> | |
About: License | |
This file is licenced under the LGPL v2+, like the rest of Augeas. | |
About: Lens Usage |
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 Sssd = | |
let entry = Build.key_value_line Rx.word Sep.space_equal (store Rx.word) | |
let rec subsection = [ Util.del_str "/" . key Rx.word | |
. ( subsection | |
| Util.del_str "]" . Util.eol . entry*) | |
] | |
let section = [ Util.del_str "[" . key Rx.word |
OlderNewer