summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorAntoine Beaupre <anarcat@koumbit.org>2009-06-24 15:13:01 -0400
committerAntoine Beaupre <anarcat@koumbit.org>2009-06-24 15:13:01 -0400
commit54acfd5febac57db6a03798402585906773d209e (patch)
tree6690d8192489e73582f8862e9a27f2fc7c588652 /manifests
parent704c3a3ec9a601dab0dac13bd5780bbe19ace55d (diff)
add cronjob, fix pgp key publishing
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp23
1 files changed, 15 insertions, 8 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index bf50770..ddd61b2 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -78,19 +78,26 @@ class reprepro {
ensure => directory;
}
- exec { "reprepro -b $basedir createsymlinks":
- refreshonly => true,
- subscribe => File["$basedir/conf/distributions"],
- path => "/usr/bin:/bin",
+ exec {
+ "reprepro -b $basedir createsymlinks":
+ refreshonly => true,
+ subscribe => File["$basedir/conf/distributions"],
+ path => "/usr/bin:/bin";
+ "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"],
+ 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"],
+ cron { reprepro:
+ command => "/usr/bin/reprepro -b $basedir processincoming incoming",
+ user => reprepro,
+ hour => '*',
+ minute => '*/5',
+ require => [ Package['reprepro'], File["$basedir/conf/distributions"] ]
}
# TODO: additional things this class could do
-# setup inotincoming cronjob
# ensure it stays running
# setup needeed lines in apache site config file