summaryrefslogtreecommitdiff
path: root/manifests/debian.pp
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2009-12-08 12:20:08 -0500
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2009-12-08 12:20:08 -0500
commitf3be4617f18ae0c31d26efc47ad5e5f11887052e (patch)
tree10841498c1704c6d17db19fc826bb7706a71dd09 /manifests/debian.pp
parent00c03fcdaad9322c7610437953ee0fb4c009d4b5 (diff)
improve Debian support
Diffstat (limited to 'manifests/debian.pp')
-rw-r--r--manifests/debian.pp14
1 files changed, 12 insertions, 2 deletions
diff --git a/manifests/debian.pp b/manifests/debian.pp
index 8733a91..b16dc9d 100644
--- a/manifests/debian.pp
+++ b/manifests/debian.pp
@@ -2,8 +2,18 @@
class apache::debian inherits apache::package {
$config_dir = '/etc/apache2'
- file {"$vhosts_dir":
- ensure => "${config_dir}/sites-enabled",
+ Package[apache] {
+ name => 'apache2',
+ }
+ File[vhosts_dir] {
+ path => "${config_dir}/sites-enabled",
+ }
+ File[modules_dir] {
+ path => "${config_dir}/mods-enabled",
+ }
+ File[htpasswd_dir] {
+ path => "/var/www/htpasswds",
+ group => 'www-data',
}
File[default_apache_index] {
path => '/var/www/index.html',