aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openssh/manifests
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2015-01-18 13:46:45 +0000
committerColin Guthrie <colin@mageia.org>2015-01-18 13:46:45 +0000
commit58a254697b6ae3c529ae726896181684f714310f (patch)
tree5228d3cb546e1c65ffb2d7bcd309a39be9a31123 /modules/openssh/manifests
parent529eee5bc243fe27578f9ce9eda9375838d19f5b (diff)
downloadpuppet-58a254697b6ae3c529ae726896181684f714310f.tar
puppet-58a254697b6ae3c529ae726896181684f714310f.tar.gz
puppet-58a254697b6ae3c529ae726896181684f714310f.tar.bz2
puppet-58a254697b6ae3c529ae726896181684f714310f.tar.xz
puppet-58a254697b6ae3c529ae726896181684f714310f.zip
openssh: Also update gitolite config when SSH keys change.
This should avoid the problems encountered recently with Donald's SSH key update and git access.
Diffstat (limited to 'modules/openssh/manifests')
-rw-r--r--modules/openssh/manifests/ssh_keys_from_ldap.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/openssh/manifests/ssh_keys_from_ldap.pp b/modules/openssh/manifests/ssh_keys_from_ldap.pp
index d70fbeaf..6d23db5b 100644
--- a/modules/openssh/manifests/ssh_keys_from_ldap.pp
+++ b/modules/openssh/manifests/ssh_keys_from_ldap.pp
@@ -9,7 +9,7 @@ class openssh::ssh_keys_from_ldap inherits server {
}
cron { 'sshkey2file':
- command => '/usr/local/bin/ldap-sshkey2file.py',
+ command => '/bin/bash -c "/usr/local/bin/ldap-sshkey2file.py && ( [[ -f /usr/bin/mgagit && -d /var/lib/git/.gitolite ]] && /bin/su -c \'/usr/bin/mgagit glrun\' - git ) ||:"',
hour => '*',
minute => '*/10',
user => 'root',