diff options
author | Antoine Beaupre <anarcat@koumbit.org> | 2009-06-24 15:13:01 -0400 |
---|---|---|
committer | Antoine Beaupre <anarcat@koumbit.org> | 2009-06-24 15:13:01 -0400 |
commit | 54acfd5febac57db6a03798402585906773d209e (patch) | |
tree | 6690d8192489e73582f8862e9a27f2fc7c588652 | |
parent | 704c3a3ec9a601dab0dac13bd5780bbe19ace55d (diff) | |
download | puppet-reprepro-54acfd5febac57db6a03798402585906773d209e.tar.gz puppet-reprepro-54acfd5febac57db6a03798402585906773d209e.tar.bz2 |
add cronjob, fix pgp key publishing
-rw-r--r-- | manifests/init.pp | 23 |
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 |