diff options
-rw-r--r-- | manifests/init.pp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 8a1fe1c..9b56512 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -34,6 +34,10 @@ class apache { '': { $apache_www_folder = "/var/www" } } + case $apache_default_folder { + '': { $apache_default_folder = "/var/www" } + } + case $apache_sites_folder { '': { $apache_sites_folder = "${apache_www_folder}/sites" } } @@ -94,6 +98,16 @@ class apache { notify => Service["apache"], } + # default site configuration + file { "${apache2_sites}-available/default": + ensure => present, + content => template('apache/default.erb'), + owner => root, + group => root, + mode => 0644, + notify => Service["apache"], + } + define site($ensure = present, $docroot = false, $redirect = false, $redirect_match = false, $protocol = 'http', $aliases = false, $server_alias = false, $use = false, $ticket = false, |