aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <dev@blino.org>2017-04-10 22:58:30 +0200
committerOlivier Blin <dev@blino.org>2017-04-10 22:59:04 +0200
commit7f0edfcd506596dc99910b1b426ff8048f3577e3 (patch)
tree22bd2ed7982d8e8adc1f771a058c4a5ff6e76c15
parent2a8a9b8c954ef2a56cf3207430adf43f090efbfa (diff)
downloadpuppet-7f0edfcd506596dc99910b1b426ff8048f3577e3.tar
puppet-7f0edfcd506596dc99910b1b426ff8048f3577e3.tar.gz
puppet-7f0edfcd506596dc99910b1b426ff8048f3577e3.tar.bz2
puppet-7f0edfcd506596dc99910b1b426ff8048f3577e3.tar.xz
puppet-7f0edfcd506596dc99910b1b426ff8048f3577e3.zip
viewvc: use a common viewvc_docroot variable
-rw-r--r--modules/viewvc/manifests/init.pp5
1 files changed, 3 insertions, 2 deletions
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,
}