From c3c2b68db005832d396c87507e0a8c716030a1b4 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 24 Jan 2011 12:22:11 +0000 Subject: add viewvc module --- modules/viewvc/manifests/init.pp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 modules/viewvc/manifests/init.pp (limited to 'modules/viewvc/manifests/init.pp') diff --git a/modules/viewvc/manifests/init.pp b/modules/viewvc/manifests/init.pp new file mode 100644 index 00000000..74be8c59 --- /dev/null +++ b/modules/viewvc/manifests/init.pp @@ -0,0 +1,28 @@ +class viewvc { + package { ['viewvc','python-svn']: + ensure => installed + } + # http_expiration_time = 600 + # svn_roots = admin: svn://svn.mageia.org/svn/adm/ + + file { 'viewvc.conf': + ensure => present, + path => '/etc/viewvc/viewvc.conf', + content => template('viewvc/viewvc.conf'), + notify => Service['apache'], + } + + file { 'webapps.d/viewvc.conf': + ensure => present, + path => '/etc/httpd/conf/webapps.d/viewvc.conf', + content => template('viewvc/webapp.conf'), + notify => Service['apache'], + } + + # need newer version of viewvc + apache::vhost_wsgi{ "viewvc.$domain": + wsgi_path => "/usr/share/viewvc/bin/wsgi/viewvc.wsgi", + aliases => { "/viewvc" => "/var/www/viewvc/" }, + } +} + -- cgit v1.2.1