aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/manifests/init.pp
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2010-11-08 13:13:13 +0000
committerNicolas Vigier <boklm@mageia.org>2010-11-08 13:13:13 +0000
commit5c04eb70e513b16951560655965638a5dc67f276 (patch)
tree8df0f430a417671cfd04b2c9841e4822f5f51562 /modules/apache/manifests/init.pp
parent26be2cbfc7cf288a95387a4f4ccbb5bad187e83c (diff)
downloadpuppet-5c04eb70e513b16951560655965638a5dc67f276.tar
puppet-5c04eb70e513b16951560655965638a5dc67f276.tar.gz
puppet-5c04eb70e513b16951560655965638a5dc67f276.tar.bz2
puppet-5c04eb70e513b16951560655965638a5dc67f276.tar.xz
puppet-5c04eb70e513b16951560655965638a5dc67f276.zip
add default vhost with redirection to www.mageia.org
Diffstat (limited to 'modules/apache/manifests/init.pp')
-rw-r--r--modules/apache/manifests/init.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp
index db876955..7ca64922 100644
--- a/modules/apache/manifests/init.pp
+++ b/modules/apache/manifests/init.pp
@@ -22,6 +22,16 @@ class apache {
group => root,
mode => 644,
}
+
+ file { "00_default_vhosts.conf":
+ path => "/etc/httpd/conf/vhosts.d/00_default_vhosts.conf",
+ ensure => "present",
+ owner => root,
+ group => root,
+ mode => 644,
+ notify => Service['apache'],
+ content => template("apache/00_default_vhosts.conf")
+ }
}
class mod_php inherits base {