Skip to content

Commit 2bf8917

Browse files
authored
Merge pull request voxpupuli#1043 from bastelfreak/http_cfg_prepend
change http_cfg_prepend default false->undef
2 parents 8aba472 + df0381b commit 2bf8917

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

manifests/init.pp

+1-12
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
$gzip_proxied = 'off',
8484
$gzip_types = undef,
8585
$gzip_vary = 'off',
86-
$http_cfg_prepend = false,
86+
$http_cfg_prepend = undef,
8787
$http_cfg_append = undef,
8888
$http_tcp_nodelay = 'on',
8989
$http_tcp_nopush = 'off',
@@ -217,17 +217,6 @@
217217
}
218218
validate_string($proxy_buffers)
219219
validate_string($proxy_buffer_size)
220-
if ($http_cfg_prepend != false) {
221-
if !(is_hash($http_cfg_prepend) or is_array($http_cfg_prepend)) {
222-
fail('$http_cfg_prepend must be either a hash or array')
223-
}
224-
}
225-
226-
if ($nginx_cfg_prepend != false) {
227-
if !(is_hash($nginx_cfg_prepend) or is_array($nginx_cfg_prepend)) {
228-
fail('$nginx_cfg_prepend must be either a hash or array')
229-
}
230-
}
231220

232221
if !(is_string($http_access_log) or is_array($http_access_log)) {
233222
fail('$http_access_log must be either a string or array')

0 commit comments

Comments
 (0)