From 6b80c659a0ec2fd8a97a0b2ce9bf9a2dec32f88c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 7 Jan 2010 20:08:15 -0200 Subject: Adding $apache_use_domain --- manifests/gitweb.pp | 4 ++++ templates/gitweb.conf.erb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/manifests/gitweb.pp b/manifests/gitweb.pp index d9d1b17..81d19c9 100644 --- a/manifests/gitweb.pp +++ b/manifests/gitweb.pp @@ -4,6 +4,10 @@ class gitweb inherits gitosis { # the needed packages package { gitweb: ensure => installed } + case $apache_use_domain { + '' { $apache_use_domain = $domain } + } + # gitweb config file file { "/etc/gitweb.conf": owner => "root", diff --git a/templates/gitweb.conf.erb b/templates/gitweb.conf.erb index 436c7a3..d66ac5b 100644 --- a/templates/gitweb.conf.erb +++ b/templates/gitweb.conf.erb @@ -25,4 +25,4 @@ $logo = "/git-logo.png"; $favicon = "/git-favicon.png"; # header url -@git_base_url_list = ('git://git.<%= domain %>'); +@git_base_url_list = ('git://git.<%= apache_use_domain %>'); -- cgit v1.2.3