From ca415e24dfabf239d792016b5522558c7a9f9828 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 9 May 2010 12:39:48 -0300 Subject: Subscribing reprepro-export-key to .gnupg/secring.gpg --- manifests/init.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'manifests') 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, } -- cgit v1.2.3