diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2009-11-03 22:00:23 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2009-11-03 22:00:23 -0200 |
commit | 5c65d2ab6dc43f5ce37ff8975346d52f4258859c (patch) | |
tree | 97dd8e221fcf80ddd0c4dc419e99e0389c3f1148 /manifests | |
parent | 92ab02215470aaf4100e582b0d628734156d7a65 (diff) | |
download | puppet-apache-5c65d2ab6dc43f5ce37ff8975346d52f4258859c.tar.gz puppet-apache-5c65d2ab6dc43f5ce37ff8975346d52f4258859c.tar.bz2 |
Adding mod_macro package and initial vhost code
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 5172678..7ec5169 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -26,11 +26,18 @@ $apache_www_folder = '/var/www/sarava'; class apache { - package { "apache": ensure => installed; } + package { "apache": ensure => installed, } + + # TODO: enable mod_macro + package { "mod_macro": + name => "libapache2-mod-macro", + ensure => installed, + require => Package["apache"], + } service { "apache": ensure => running, - require => Package["apache"], + require => Package["apache", "mod_macro"], } # apache mod_macro configuration @@ -45,9 +52,7 @@ class apache { } # TODO: ensure folders exist with right modes and ownership - define website($ensure = present, $drupal = false, $pmwiki = false, - $moin = false, $trac = false, $ikiwiki = false, - $custom = false) { + define website($ensure = present, $alias = [], $use = []) { file { "/etc/apache2/sites-available/$title": ensure => $ensure, content => template('apache/website.erb'), |