From: Silvio Rhatto Date: Sun, 9 May 2010 15:39:48 +0000 (-0300) Subject: Subscribing reprepro-export-key to .gnupg/secring.gpg X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=ca415e24dfabf239d792016b5522558c7a9f9828;p=puppet-reprepro.git Subscribing reprepro-export-key to .gnupg/secring.gpg --- diff --git a/manifests/init.pp b/manifests/init.pp index 2c30adc..906ac6f 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -92,6 +92,10 @@ class reprepro { mode => 700, owner => reprepro, group => reprepro, ensure => directory; + "$basedir/.gnupg/secring.gpg": + mode => 600, owner => reprepro, group => reprepro, + ensure => present; + "/usr/local/bin/reprepro-export-key": ensure => present, content => template('reprepro/reprepro-export-key.sh.erb'), @@ -114,7 +118,7 @@ class reprepro { "/usr/local/bin/reprepro-export-key": creates => "$basedir/key.asc", user => reprepro, - subscribe => File["$basedir/.gnupg"], + subscribe => File["$basedir/.gnupg/secring.gpg"], require => File["/usr/local/bin/reprepro-export-key"], refreshonly => true, }