summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorAntoine Beaupre <anarcat@koumbit.org>2009-06-24 14:14:18 -0400
committerAntoine Beaupre <anarcat@koumbit.org>2009-06-24 14:14:18 -0400
commit5f4d894a82dfd15dd1b66b7f7bd63c13d9687ac2 (patch)
treed20b3755e9a7778fb372350b55a62071947ae3f0 /manifests
parent797935d8e8d9f94616d602865b89772b56951130 (diff)
downloadpuppet-reprepro-5f4d894a82dfd15dd1b66b7f7bd63c13d9687ac2.tar.gz
puppet-reprepro-5f4d894a82dfd15dd1b66b7f7bd63c13d9687ac2.tar.bz2
create the gnupg signature in key.asc so people can import. also put our README there
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp15
1 files changed, 12 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 1e4bd70..bf50770 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -69,9 +69,13 @@ class reprepro {
mode => 0664, owner => root, group => reprepro,
source => "puppet://$servername/reprepro/incoming";
- "$basedir/index.html":
+ "$basedir/README.txt":
mode => 0664, owner => root, group => reprepro,
- source => "puppet://$servername/reprepro/index.html";
+ source => "puppet://$servername/reprepro/README.txt";
+
+ "$basedir/.gnupg":
+ mode => 750, owner => reprepro, group => root,
+ ensure => directory;
}
exec { "reprepro -b $basedir createsymlinks":
@@ -79,7 +83,12 @@ class reprepro {
subscribe => File["$basedir/conf/distributions"],
path => "/usr/bin:/bin",
}
-
+
+ exec { "gpg --export -a `gpg --with-colon --list-secret-keys | awk -F ':' '{ print $5 }' | head -1` > $basedir/key.asc":
+ creates => "$basedir/key.asc",
+ subscribe => File["$basedir/.gnupg"],
+ }
+
# TODO: additional things this class could do
# setup inotincoming cronjob
# ensure it stays running