diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-05-08 12:40:15 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-05-08 12:40:15 -0300 |
commit | 9b0b7e0505d9bc5adeea389a9c8aeb833c4fc13d (patch) | |
tree | 9945638978ef78cc7baa7b07439b7203b8761071 /manifests/init.pp | |
parent | dd123cc1aceed8739e202dea5f552a31329217cc (diff) |
Using templates instead of plain config files, adding $reprepro_basedir
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 140bad7..02a8794 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,6 +1,9 @@ class reprepro { - $basedir = '/srv/reprepro' + $basedir = $reprepro_basedir ? { + '' => '/srv/reprepro', + default => $reprepro_basedir, + } case $lsbdistcodename { etch: { @@ -66,11 +69,11 @@ class reprepro { "$basedir/conf/distributions": mode => 0664, owner => root, group => reprepro, - source => "puppet://$servername/reprepro/distributions"; + content => template("reprepro/distributions.erb"); "$basedir/conf/uploaders": mode => 0660, owner => root, group => reprepro, - source => "puppet://$servername/reprepro/uploaders"; + content => template("reprepro/uploaders.erb"); "$basedir/conf/incoming": mode => 0664, owner => root, group => reprepro, @@ -78,7 +81,7 @@ class reprepro { "$basedir/index.html": mode => 0664, owner => root, group => reprepro, - source => "puppet://$servername/reprepro/index.html"; + source => template("reprepro/index.html.erb"); "$basedir/.gnupg": mode => 750, owner => reprepro, group => root, |