From 7f0edfcd506596dc99910b1b426ff8048f3577e3 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 10 Apr 2017 22:58:30 +0200 Subject: viewvc: use a common viewvc_docroot variable --- modules/viewvc/manifests/init.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/viewvc/manifests/init.pp b/modules/viewvc/manifests/init.pp index 9e6e3230..79667fab 100644 --- a/modules/viewvc/manifests/init.pp +++ b/modules/viewvc/manifests/init.pp @@ -30,7 +30,8 @@ class viewvc { environment => 'MAILTO=root', } - $robotsfile = '/usr/share/viewvc/templates/docroot/robots.txt' + $viewvc_docroot = '/usr/share/viewvc/templates/docroot' + $robotsfile = "$viewvc_docroot/robots.txt" file { $robotsfile: ensure => present, mode => '0644', @@ -40,7 +41,7 @@ class viewvc { } $vhost_aliases = { - '/viewvc' => '/usr/share/viewvc/templates/docroot', + '/viewvc' => $viewvc_docroot, '/robots.txt' => $robotsfile, } -- cgit v1.2.1