summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-06-17 13:34:30 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-06-17 13:34:30 -0300
commit80c49351edc7f7a878a7e00392fdd28434bceefe (patch)
tree07991cfa78f05120d586540f8d62ce6371bf0037 /manifests
downloadpuppet-viewvc-80c49351edc7f7a878a7e00392fdd28434bceefe.tar.gz
puppet-viewvc-80c49351edc7f7a878a7e00392fdd28434bceefe.tar.bz2
Initial import
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp18
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644
index 0000000..e59b66c
--- /dev/null
+++ b/manifests/init.pp
@@ -0,0 +1,18 @@
+class viewvc {
+ case $viewvc_svn_roots {
+ '': { $viewvc_svn_roots = "svn: /var/lib/svn" }
+ }
+
+ package { 'viewvc':
+ ensure => present,
+ }
+
+ file { '/etc/viewvc/viewvc.conf':
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 0644,
+ content => template('viewvc/viewvc.conf.erb'),
+ require => Package['viewvc'],
+ }
+}