Skip to content

Instantly share code, notes, and snippets.

apt::source { 'somerepo':
ensure => $ensure_source,
comment => 'Somerepo mirror',
location => 'http://somerepo.com/mirror',
repos => 'main us2',
release => $::lsbdistcodename,
architecture => 'amd64',
require => Apt::Key['somerepo'],
}
Class['apt::update'] -> Package <| provider == 'apt' |>
---
#
# Patch exim.conf version 2.1.1 to include keep_environment=PWD
#
- hosts: directadmin
serial: 10
max_fail_percentage: 20
tasks:
- name: "patch: check exim.conf version"
shell: "grep -c 'SpamBlocker.exim.conf.2.1.*-release' /etc/exim.conf"
@ju5t
ju5t / modsec-712.patch
Created November 2, 2014 07:56
A patch for modsecurity and mpm-itk
diff --git a/apache2/msc_logging.c b/apache2/msc_logging.c
index 3323fac..ce8b069 100644
--- a/apache2/msc_logging.c
+++ b/apache2/msc_logging.c
@@ -225,10 +225,20 @@ static char *construct_auditlog_filename(apr_pool_t *mp, const char *uniqueid) {
char tstr[300];
apr_size_t len;
+ /**
+ * This is required for mpm-itk & mod_ruid2, though should be harmless for other implementations