From 5c65d2ab6dc43f5ce37ff8975346d52f4258859c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 3 Nov 2009 22:00:23 -0200 Subject: Adding mod_macro package and initial vhost code --- manifests/init.pp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'manifests') 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'), -- cgit v1.2.3