From 1be65923217490f465657b89e918353ce35a0685 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 25 Mar 2013 20:35:49 +0100 Subject: [PATCH] Define logformat privacy --- modules/apache2/files/logformat-privacy | 6 ++++++ modules/apache2/manifests/init.pp | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 modules/apache2/files/logformat-privacy diff --git a/modules/apache2/files/logformat-privacy b/modules/apache2/files/logformat-privacy new file mode 100644 index 000000000..aede26b46 --- /dev/null +++ b/modules/apache2/files/logformat-privacy @@ -0,0 +1,6 @@ +## +## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE. +## + +LogFormat "0.0.0.0 - %u %{[%d/%b/%Y:00:00:00 %z]}t \"%r\" %>s %b \"%{Referer}i\" \"-\"" privacy +LogFormat "0.0.0.1 - %u %{[%d/%b/%Y:00:00:00 %z]}t \"%r\" %>s %b \"%{Referer}i\" \"-\"" privacyssl diff --git a/modules/apache2/manifests/init.pp b/modules/apache2/manifests/init.pp index ef2864e36..1f232b931 100644 --- a/modules/apache2/manifests/init.pp +++ b/modules/apache2/manifests/init.pp @@ -29,6 +29,10 @@ class apache2 { source => 'puppet:///modules/apache2/security', } + apache2::config { 'logformat-privacy': + source => 'puppet:///modules/apache2/logformat-privacy', + } + apache2::config { 'local-serverinfo': source => 'puppet:///modules/apache2/local-serverinfo', } -- 2.20.1