From f4c0de8cd4225fab2ff6ef2a5da77d96f762e53c Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 13 Feb 2013 15:23:14 -0500 Subject: add possibility to have a customizable distributions template --- manifests/repository.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manifests/repository.pp b/manifests/repository.pp index 07ba6e2..0c65c9f 100644 --- a/manifests/repository.pp +++ b/manifests/repository.pp @@ -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": -- cgit v1.2.3