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
require 'augeas' | |
Augeas.open(nil, nil, Augeas::NO_MODL_AUTOLOAD) do |aug| | |
aug.transform( | |
:name => 'NagiosObjects', | |
:lens => 'NagiosObjects.lns', | |
:incl => ['/home/rpinson/bas/augeas/etc/nagios.d/*.cfg'], | |
:excl => [] | |
) | |
aug.load! |
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
<?xml version="1.0" encoding="utf-8"?><tomcat-users><role rolename="manager"></role> | |
<user username="tcadmin" password="password" roles="manager"></user> | |
</tomcat-users> |
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 java::property ( | |
$ensure = 'present', | |
$value = undef, | |
$target, | |
) { | |
case $ensure { | |
'present': { | |
$changes = "set ${name} ${value}" | |
} |
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
$ augparsediff -c -I lenses/ lenses/tests/test_mysql.aug | |
Syntax error in lens definition | |
Failed to load lenses/tests/test_mysql.aug | |
--- expected 2015-06-12 11:25:32.982707547 +0200 | |
+++ actual 2015-06-12 11:25:32.986707733 +0200 | |
@@ -113,6 +113,9 @@ | |
{ "max_allowed_packet" = "16M" } | |
{ } | |
} | |
+ { "!includedir" = "/etc/mysql/middle_include" } |
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
if ($::operatingsystem != 'RedHat' or versioncmp($::operatingsystemmajrelease, '4') > 0) | |
and ($::operatingsystem != 'Debian' or versioncmp($::operatingsystemmajrelease, '5') > 0) { | |
} |
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
:sources: | |
p1: | |
remote: "/home/rpinson/bas/r10k/p1" | |
basedir: "/home/rpinson/bas/r10k/environments" | |
prefix: true | |
p2: | |
remote: "/home/rpinson/bas/r10k/p2" | |
basedir: "/home/rpinson/bas/r10k/environments" | |
prefix: true |
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
Puppet::Type.type(:foo).provide(:olc) do | |
mk_resource_methods | |
def self.instances | |
['a', 'b', 'c'].map do |i| | |
new ({ | |
:ensure => :present, | |
:name => "bar#{i}", | |
}) | |
end |
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 Agocontrol = autoload xfm | |
let comment = IniFile.comment "#" "#" | |
let sep = IniFile.sep "=" "=" | |
let entry = IniFile.indented_entry IniFile.entry_re sep comment | |
let title = IniFile.indented_title IniFile.record_re | |
let record = IniFile.record title entry | |
let lns = IniFile.lns record comment | |
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
[Unit] | |
Description=Odoo Instance %i | |
ConditionPathExists=/srv/openerp/instances/%I/auto-run | |
PartOf=odoo.service | |
ReloadPropagatedFrom=odoo.service | |
Before=odoo.service | |
[Service] | |
Type=forking | |
# @: use "odoo@%i" as process name |
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
puppetserver::config::bootstrap { 'puppetlabs.services.ca.certificate-authority-disabled-service/certificate-authority-disabled-service': | |
ensure => present, | |
} |