From 161f3db6d34f705203188fec879d5ec25aca8ece Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 19 Jun 2015 20:33:13 -0300 Subject: Adds trac-git on wheezy --- manifests/init.pp | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 58d2194..7aff6fd 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,16 +1,15 @@ class trac { - # the needed packages + # The needed packages package { "trac": ensure => installed, } package { "libapache2-mod-python": ensure => installed, } - # needed by http://trac-hacks.org/wiki/TracWikiToPdfPlugin + # Needed by http://trac-hacks.org/wiki/TracWikiToPdfPlugin package { [ "htmldoc", "python-clearsilver" ]: ensure => present, } - # various plugins - package { [ "trac-wysiwyg", - "trac-graphviz", "trac-authopenid" ]: + # Various plugins + package { [ "trac-wysiwyg", "trac-graphviz", "trac-authopenid" ]: ensure => $lsbdistcodename ? { 'lenny' => absent, 'precise' => absent, @@ -18,6 +17,14 @@ class trac { }, } + # Available just on wheezy + package { 'trac-git': + ensure => $::lsbdistcodename ? { + 'wheezy' => present, + default => absent, + }, + } + # Available just on squeeze package { "trac-wikirename": ensure => $lsbdistcodename ? { @@ -26,7 +33,7 @@ class trac { }, } - # buggy squeeze packages, use eggs instead + # Buggy squeeze packages, use eggs instead package { [ "trac-mastertickets", "trac-accountmanager" ]: ensure => absent, } -- cgit v1.2.3