changeset 146:816e35f86a5d puppet-3.6

Remove mod_auth_token and replace with mod_xsendfile
author IBBoard <dev@ibboard.co.uk>
date Sat, 25 Mar 2017 20:18:13 +0000
parents 88f38ef7359f
children 6cb6dc1f74d4
files manifests/templates.pp
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/manifests/templates.pp	Sat Mar 25 12:05:36 2017 +0000
+++ b/manifests/templates.pp	Sat Mar 25 20:18:13 2017 +0000
@@ -453,15 +453,21 @@
 	}
 
 	# Common modules used by multiple sites (mod_auth_basic is safe because we HTTPS all the things)
+	$mods = [ 'auth_basic',
+		'authn_file',
+		'authz_user',
+		'deflate',
+		'xsendfile'
+		]
 	apache::mod {
-		'auth_basic':; 'authn_file':; 'authz_user':; 'auth_token':;'deflate':;
+		$mods:;
 	}
 	if $operatingsystem == 'CentOS' and versioncmp($operatingsystemrelease, 7) >= 0 {
 		apache::mod { 
 			'authn_core':;
 		}
 	}
-	$apache_packages = [ 'mod_auth_token' ]
+	$apache_packages = [ 'mod_xsendfile' ]
 	package { $apache_packages:
 		ensure => present;
 	}