This file contains hidden or 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
define private::def ( | |
) { | |
private() | |
} |
This file contains hidden or 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
PROFILE=mcollective | |
TARBALL=montarball.tar.gz | |
APT_DIR=packages/apt | |
# Get modules | |
# TODO: versions? | |
rake spec_prep | |
# Run tests |
This file contains hidden or 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
define shared_host ( | |
$ipaddress, | |
$fqdn, | |
$hostname, | |
) { | |
host { $fqdn: | |
ip => $ipaddress, | |
host_aliases => $hostname, | |
} | |
} |
This file contains hidden or 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 |
This file contains hidden or 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 <[email protected]> | |
About: License | |
This file is licenced under the LGPL v2+, like the rest of Augeas. | |
About: Lens Usage |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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); |