summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-09-27 14:18:10 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-09-27 14:18:10 -0300
commitf249c9b35933c11ee028ac81f75cb724b1e4b94a (patch)
tree36a3b90bfd070c84bf1ca7e2b6f20d403a0e5651
parent68ed4c37fc3ecaa3470ce9ce9fb29ba726390c71 (diff)
downloadpuppet-apache-f249c9b35933c11ee028ac81f75cb724b1e4b94a.tar.gz
puppet-apache-f249c9b35933c11ee028ac81f75cb724b1e4b94a.tar.bz2
Fix some config files
-rw-r--r--manifests/init.pp18
1 files changed, 14 insertions, 4 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 91b20b3..497d5a3 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -36,7 +36,7 @@ class apache(
$error_dest = "http://${domain}/missing.html",
$default_folder = '/var/www/data',
$server_name = $hostname,
- $https_proxy = 'no',
+ $https_proxy = 'yes',
$remote_addr = false,
$http_port = '80',
$https_port = '443',
@@ -242,9 +242,14 @@ class apache(
notify => Service["apache2"],
}
+ # Old config file without .conf extension
+ file { "$conf_d/https-proxy":
+ ensure => absent,
+ }
+
# https proxy configuration
# see http://www.metaltoad.com/blog/running-drupal-secure-pages-behind-proxy
- file { "$conf_d/https-proxy":
+ file { "$conf_d/https-proxy.conf":
ensure => $https_proxy ? {
'' => absent,
default => present,
@@ -259,10 +264,15 @@ class apache(
notify => Service["apache2"],
}
+ # Old config file without .conf extension
+ file { "$conf_d/remote-addr":
+ ensure => absent,
+ }
+
# TODO: remove this in the future
# remote addr rewrite
# see http://stackoverflow.com/questions/2328225/how-to-set-remote-addr-in-apache-before-php-is-invoked
- file { "$conf_d/remote-addr":
+ file { "$conf_d/remote-addr.conf":
ensure => $remote_addr ? {
false => absent,
default => present,
@@ -288,7 +298,7 @@ class apache(
refreshonly => true,
}
- # Legacy configuration
+ # Old config file without .conf extension
file { "$conf_d/macros":
ensure => absent,
}