From d3f1a1611e3b978437eb18526eaf169cd241cd7d Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 5 Aug 2013 11:25:33 +0200 Subject: [PATCH] try to export stabile's key to backuphost --- modules/ssh/templates/authorized_keys.erb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/ssh/templates/authorized_keys.erb b/modules/ssh/templates/authorized_keys.erb index 2adfd0743..a2c86074e 100644 --- a/modules/ssh/templates/authorized_keys.erb +++ b/modules/ssh/templates/authorized_keys.erb @@ -48,6 +48,17 @@ command="/usr/lib/da-backup/da-backup-ssh-wrap ' + scope.lookupvar('site::allnod ' end out + when "backuphost.debian.org" then + out = '' + scope.lookupvar('site::allnodeinfo').keys.sort.each do |node| + if %w{stabile}.include?(node) then + out += '# ' + scope.lookupvar('site::allnodeinfo')[node]['hostname'][0] + ' + command="/usr/lib/da-backup/da-backup-ssh-wrap ' + scope.lookupvar('site::allnodeinfo')[node]['hostname'][0] + '",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,from="' + scope.lookupvar('site::allnodeinfo')[node]['ipHostNumber'].join(',') + '" ' + scope.lookupvar('site::allnodeinfo')[node]['sshRSAHostKey'][0] + ' + +' + end + end + out end machine_keys %> -- 2.20.1