non-SSL is on 80
[mirror/dsa-puppet.git] / modules / ssh / templates / authorized_keys.erb
1 <%
2   allnodeinfo = scope.lookupvar('site::allnodeinfo')
3   roles = scope.lookupvar('site::roles')
4 %>
5
6 # local admin
7 <%= localkeys = case @fqdn
8          when "pettersson.debian.org" then "from=\"nixon.acc.umu.se\" ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAwDw56/XK0/uQB+ZIOZIfZ3vpz9zLRuv6G0U4eU4VavqvaL0dXSNhGJLBDLlfpxtJYwYf/mSoK4WZasbbfHxz8jtIxK9c9aGkVA0GKT+xiHWB3J1SlwJaA7S7Ed8nNcG5PNOVd30BD5LimkS53Nz841e+MgZRuL9SfLALq7er03U= root@nixon"
9 end
10 localkeys
11 %>
12 <%=
13   ganetikeys = []
14   if scope.lookupvar('::cluster')
15     scope.lookupvar('::cluster_nodes').split.sort.each do |node|
16       if allnodeinfo.has_key?(node)
17         ganetikeys << "# for ganeti cluster #{scope.lookupvar('::cluster').to_s}: #{allnodeinfo[node]['hostname'][0]}"
18         allnodeinfo[node]['sshRSAHostKey'].sort.each do |key|
19           ganetikeys << "from=\"#{allnodeinfo[node]['ipHostNumber'].join(',')}\" #{key}"
20         end
21       else
22         ganetikeys << "# host #{node} not found in allnodeinfo"
23       end
24     end
25   end
26   ganetikeys.join("\n");
27 %>
28 #
29 # DSA
30 #
31 # luca
32 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDNYrvjY/kH1TAHrnVZXnP8DcBgGXYQ/jP+oexcGmQfFvpXm8ivZRxZn1SXgu8Pld4pgUBcuSMITfA4egXU94FpbUDPXoORUC3Gp7U0Of/7ZH2OitVAbwW5g2M8pslogHxIyW0CmH8gPlBNNxY0CMSI2U1EBKUH4PeqZ6lgqLYIr/BGQeWfjnvsFHvD+KFPCOhNpLPytkP0eeibQ9on0Qwc6nsVMaW9kIMWRmkg6OlkWBnV/1IwgBPcQmL2IJ6H+zYjhEYeXlQ+w8Rw1a46lSo4Tqnj3C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UagATYLgbqzMRfgqslJFDJxB8fQ++Xlodq20MTt2TM9L89ilKyzmG/tNawR71l8+U/sxJS6/sVVXCzHLlMEyVnYRZMBeNwiW2ZBjM+mTv300vUS7+iNUOaZasPOMJqV3d4ImgRUMcOmExMDAnHCRGS10= Peter Palfrader - debian adm key (2008-05-11)
37 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDR9rh9AuBKt7yEAgtpvTPTl/SJWi2nAe5h5cnhTpWwPQU0VwxpJZlHWDBxldcrqUCZsycpa5e82ABLeZF9n5Sf54PbSRjCMo515/8hOkkGe6EFchI0HL+pVrSDEyVm0ymHFOj7MQn2uC3mQfOzv+v89zK1KR2355cUVjCx6JMuzwn0cQR4bTZ0YA7JSxkDuLgKooIBzck02M6yrJEEZbrk4q+qv6Enls3kwBbPY5KDVmo3apjbBlZMWd4aZtjhL0xT8VqsVhTRZrTg8DrAbW2dmE+fV7x9TeNSh30WYWzx/AdYerMtA4SrnTc2Bhntvngu98w++IILckG1zEsSP6Mr Peter Palfrader (authentication key) - A091F0BBB2A1CD5E (20140504)
38 # jcristau
39 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+qHoJfNvqW7Ha5Tsrg6387tL3Xt4wjPhnxu082pm3bJFEkQAYVzJHtBdTWR6H2OABgPmLjC+sO5MGuXOzTNnVyL+CbhYRRSjHPHq3eaot7m4v0okIwWTcFBhb5YqRxeQHx5NK63y6yQWOYIoHH38iDBVm555RxlLGcGTGInXPoLQzpcTM0JL0aethYuNSDgmf/K6dDyEoUmzCKDgOfpOmgSWe//PiqV/ULN1/QzV3Ho/l7P5l3iYw8LBXreFuqiJjQ9YXVUL/DVMaab8yTQNnxmTTrrfzj/KSasNCzHo1FBK9n4AjGQQLs58RQuAHoBBCAhR7DfNa+zDAQBlt7c6V jcristau - authentication key 1AEFE8A5 (20151225)
40 # aurel32
41 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAEAQDJp6ryOTW7VgqEa+n6uKpi/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YYx4w0sES+0nxNIha9CuGGA2rFzi3NBnrMucsPwtTcw/3SOVAuid9kUR6Sjq6/0ZeaoQ+Mk7YFkYQ7HZEoraVZy6N6UrrIdNj9WWarKpig+aHMBDCLT8Rep07BtAGJHnQjld0tssMtFnK0TV5BhPyY/I9g1sla3vHn3eaCtzQ68pbS9JnCGXHYTbFnVJa0TAIlCi7+pQC9Az/pUta05E382cD7f04o/yTCEWd7BcDZSRuyuTInZZVseD1pCVg9O4H4THVtsqVqWWfuxbZ aurel32's root key for debian.org
42
43 <%=
44
45 machine_keys = []
46 case @fqdn
47   when "storace.debian.org" then
48     roles['dabackup_client'].each do |node|
49       if allnodeinfo.has_key?(node)
50         hostname = allnodeinfo[node]['hostname'][0]
51
52         machine_keys << "# #{hostname}"
53         machine_keys << "command=\"/usr/lib/da-backup/da-backup-ssh-wrap #{hostname}\",from=\"#{allnodeinfo[node]['ipHostNumber'].join(',')}\",restrict #{allnodeinfo[node]['sshRSAHostKey'][0]}"
54       else
55         machine_keys << "# host #{node} not found in allnodeinfo"
56       end
57   end
58 end
59 machine_keys.join("\n")
60 %>