summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp15
1 files changed, 14 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index d4ea486..2960e2f 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -157,8 +157,14 @@ class apache(
"puppet:///modules/apache/icons", ]
}
+ # Legacy configuration
+ file { [ "${sites}-available/default", "${sites}-enabled/000-default" ]:
+ ensure => absent,
+ notify => Service["apache"],
+ }
+
# default site configuration
- file { "${sites}-available/default":
+ file { "${sites}-available/default.conf":
ensure => present,
content => template('apache/default.erb'),
owner => root,
@@ -167,6 +173,13 @@ class apache(
notify => Service["apache"],
}
+ file { "${sites}-enabled/000-default.conf":
+ owner => root,
+ group => root,
+ ensure => "${sites}-available/default.conf",
+ notify => Service["apache"],
+ }
+
# https proxy configuration
# see http://www.metaltoad.com/blog/running-drupal-secure-pages-behind-proxy
file { "$conf_d/https-proxy":