diff options
-rw-r--r-- | manifests/defines/configuration.pp | 9 | ||||
-rw-r--r-- | manifests/defines/vhost_varieties.pp | 2 | ||||
-rw-r--r-- | manifests/init.pp | 3 | ||||
-rw-r--r-- | templates/default/default_index.erb | 14 |
4 files changed, 13 insertions, 15 deletions
diff --git a/manifests/defines/configuration.pp b/manifests/defines/configuration.pp index 19b56ee..4705414 100644 --- a/manifests/defines/configuration.pp +++ b/manifests/defines/configuration.pp @@ -66,9 +66,10 @@ define apache::vhost::webdir( $ensure = present, $path = 'absent', $owner = root, - $group = 0, - $documentroot_owner = apache, - $documentroot_group = 0, + $group = apache, + $mode = 0640, + $documentroot_owner = root, + $documentroot_group = apache, $documentroot_mode = 0640, $documentroot_recurse = false ){ @@ -123,7 +124,7 @@ define apache::vhost::webdir( default: { file{"$real_path": ensure => directory, - owner => $owner, group => $group, mode => '0755'; + owner => $owner, group => $group, mode => $mode; } file{"$documentroot": ensure => directory, diff --git a/manifests/defines/vhost_varieties.pp b/manifests/defines/vhost_varieties.pp index 3fe557b..ea34555 100644 --- a/manifests/defines/vhost_varieties.pp +++ b/manifests/defines/vhost_varieties.pp @@ -87,7 +87,7 @@ define apache::vhost::php::standard( $path = 'absent', $template_mode = 'php', $owner = root, - $group = 0, + $group = apache, $documentroot_owner = apache, $documentroot_group = 0, $documentroot_mode = 0750, diff --git a/manifests/init.pp b/manifests/init.pp index 1316bf1..90a84a0 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -88,6 +88,9 @@ class apache::package inherits apache::base { File['vhosts_dir']{ require => Package[apache], } + File['config_dir']{ + require => Package[apache], + } Service['apache']{ require => Package[apache], } diff --git a/templates/default/default_index.erb b/templates/default/default_index.erb index 844ad04..dbe9954 100644 --- a/templates/default/default_index.erb +++ b/templates/default/default_index.erb @@ -5,15 +5,9 @@ <meta http-equiv="content-type" content="text/html; charset=utf-8" /> </head> <body> -<h1> No Page @ this location</h1> -<p> - <a href="http://validator.w3.org/check?uri=referer"><img - src="http://www.w3.org/Icons/valid-xhtml10" - alt="Valid XHTML 1.0 Strict" height="31" width="88" style="border: 0;" /></a> -</p> -<p> - <small><em><%= hostname %></em></small> -</p> + <h1> No page @ this location</h1> + <p> + <small><em><%= hostname %></em></small> + </p> </body> </html> - |