From 8cfe501af0e23b6412b91183ba96cb0c3b7723bd Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 20 Jan 2011 15:10:15 -0200 Subject: Managing GPG keys refreshing --- manifests/init.pp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 756e163..c381f1b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -22,7 +22,8 @@ class user { $sshkey_type = 'absent', $membership = 'minimum', $ticket = false, - $tag = false) { + $tag = false, + $refresh_keys = false) { if $password != 'absent' { @@ -119,6 +120,17 @@ class user { tag => $tag, } + if $refresh_keys == true { + cron { "gpg-refresh-keys-${title}": + command => "/usr/bin/gpg --refresh-keys > /dev/null 2>&1", + user => $title, + hour => "*/1", + minute => "0", + ensure => present, + require => User[$title], + } + } + # lots of bugs preventing a good implementation for ssh keys # http://projects.reductivelabs.com/issues/1409 # http://projects.reductivelabs.com/issues/2004 -- cgit v1.2.3