add the ability to have a customized index.html add_customizable_index
authorMicah Anderson <micah@riseup.net>
Wed, 13 Feb 2013 17:06:03 +0000 (12:06 -0500)
committerMicah Anderson <micah@riseup.net>
Wed, 13 Feb 2013 17:06:03 +0000 (12:06 -0500)
manifests/repository.pp

index 07ba6e2..ae02447 100644 (file)
@@ -10,7 +10,8 @@ define reprepro::repository (
   $manage_distributions_conf    = true,
   $manage_incoming_conf         = true,
   $handle_incoming_with_cron    = false,
-  $handle_incoming_with_inotify = false
+  $handle_incoming_with_inotify = false,
+  $index_template = 'reprepro/index.html.erb',
 ) {
   include reprepro
 
@@ -76,7 +77,7 @@ define reprepro::repository (
   file { "${basedir}/index.html":
     mode    => '0664',
     owner   => root,
-    content => template('reprepro/index.html.erb'),
+    content => template($index_template),
   }
 
   file { "${basedir}/.gnupg":