add possibility to have a customizable distributions template add_customizable_distributions
authorMicah Anderson <micah@riseup.net>
Wed, 13 Feb 2013 20:23:14 +0000 (15:23 -0500)
committerMicah Anderson <micah@riseup.net>
Wed, 13 Feb 2013 20:23:14 +0000 (15:23 -0500)
manifests/repository.pp

index 07ba6e2..0c65c9f 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,
+  $distributions_template = 'reprepro/distributions.erb'
 ) {
   include reprepro
 
@@ -103,7 +104,7 @@ define reprepro::repository (
     File["${basedir}/conf/distributions"] {
       owner   => root,
       mode    => '0664',
-      content => template('reprepro/distributions.erb'),
+      content => template($distributions_template),
     }
 
     exec { "reprepro -b ${basedir} createsymlinks":