Add init.pp & common.yaml for ssh
This commit is contained in:
parent
de5efe8aa7
commit
a2f2d2ee70
46
global/overlay/etc/hiera/data/common.yaml
Normal file
46
global/overlay/etc/hiera/data/common.yaml
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
mgmt_addresses:
|
||||||
|
- 130.242.125.68 # hoppjerka.sunet.se
|
||||||
|
- 2001:6b0:8:4::68 # hoppjerka.sunet.se
|
||||||
|
- 130.242.121.73 # joppherka.sunet.se
|
||||||
|
- 2001:6b0:7:6::73 # joppherka.sunet.se
|
||||||
|
- 192.168.202.0/24 # Wireguard network
|
||||||
|
|
||||||
|
|
||||||
|
# Database of SSH keys. Presence of a key in this database does NOT mean it gets
|
||||||
|
# installed anywhere. Real ACLs refer to keys in this database.
|
||||||
|
sunet_ssh_keys:
|
||||||
|
'paulo+D479C761':
|
||||||
|
name : 'paulo+D479C761@nordu.net'
|
||||||
|
key : 'AAAAB3NzaC1yc2EAAAADAQABAAACAQDbbvxk9c/+nV1+B4W0867eNG4UoPFonBWHQpn19nbBmUATw3FxBodX6nbOp87EXWr49SbyD+SdfQy9e6GwKGL1ujT5OqhoCc9VUKIsPSlsXxDva9zYqNk+cpjskvm8Dz8JTialJYZdEJoMLZ8zpy/1OzCq5h9xCa0BZdmgwvAuwiluf+XQcjAXRL/9Hyw0/HBUUd66OS6Ou2gOtokvPDdIBRRKEAyhOG4evoq7PyaxY4sLZ52XVr/39PkCjtvmI4qIrcYVB9OP1rabl4W2c1274wgy5KhvFEedA+X1qzTj3beyEW+c5+qFwa62zblj5AW1aUc1vjQBVyWywSzWBWRvSId+mw10m/tNXt43SersjVHd6MbTkk1hnMRJwiHVe34FlAgIuwzUJrDhgEqmtLT1GRZfKQfXwr0oMyTnvw7aRlVgztWUvFTCDZ7OldnoTaIa9Lbwc2LGuSGy3DfUW/rXjBapxrr3HdyDlOCK8FM4wpThh8SKYpY3AOdw4ax3wnkmsJ4bl5ClSQ9HJfpgQHZI8xlh6J/NLRqRZbin+HvOUrxzQXwh3c9ImmQa2Hk96BgK0gNnKwWh0/XsIfpwxfQAp1Q6Y4De8IOs6qatDWGeIEgXobTmS4Z3mUtJBFQVAA59DwPOudmdw+yFDwuDfx0LiUKsevDcp5Xi15JZ0+9qlw=='
|
||||||
|
|
||||||
|
'paulo+B36D0448':
|
||||||
|
name : 'paulo+B36D0448@nordu.net'
|
||||||
|
key : 'AAAAB3NzaC1yc2EAAAADAQABAAACAQDVSQJKFBcXkjvYsyio6QL9KzAV/EOP+w1UgeIgDK3YBYqWm66H2zpABcq14mWzhfV93lx/E1dC58nLtJ1A87UAactubnBCANAVbO1CfxgoUq1+bCJ1fXYeC/+lXdntKVhynwQyljZIPV73Q61/E6wwQJWbG/TdbUe2HrTTIYjCqPieFNZNbo4OzbsFuPhFKKi4ajsmDVhERuSTnPUXT2ub1xzvULOBEIapABeFSMjA40Ickwo1M5eFvvNsJMzzLpnqRESu5Ow2/mXnT+8IGIHDi0BDhhKvCIgnRKnsytK4qFoUK5y3C6krYLB+omtY1WJFE7sCfQCPCRe5ldqEOctjA6qsV1mhUZBu7je3jsQZJTkLsF/N8RtXjy/Qx5InV98+PaiKBB3/ItcmM6nOGoeeyfJ9gsAQ4xBw2Q5aFWHbejSE47JtMosatX86kHtrDBQUteq8vqdH0iFbF2m8FSIcHDMnqMwqZ7qlRifla4Z/HzKU65xXBLyDnU/chIi3n1A5ttjELUh9xp1lUFq7foc7ar0bY/FLpGgHIBJpTtzYnM7VKuWtUe+1YoeROOpUDn5U5GTNn+qnKe8bnHhIWfo26MYbJYy2OPK5o5nhBF8BbKyjeoYzWQ+f9iot4YF0e77SbOkLkbaeN8vAfZQejebjPUlVTBe9UVGdtnfMDwN68Q=='
|
||||||
|
|
||||||
|
'mariah+CA747E57':
|
||||||
|
name : 'mariah+CA747E57@nordu.net'
|
||||||
|
key : 'AAAAB3NzaC1yc2EAAAADAQABAAABAQDLQfL3uYsqjzkKOxn9nhjDHeWdWQ5SRwcPzq7gINcwJ7omA5c7wJ4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||||
|
'jocar-infra':
|
||||||
|
name : 'jocar-infra'
|
||||||
|
key : 'AAAAB3NzaC1yc2EAAAADAQABAAACAQDNkmMZWjsa2oZfIsK+8wO0w8MgMa1aWUOZXahgj7Jg+CBSxY3eXNa8BRoT9gvHEWSdT9N6AIY0IxCiDs0KZmB4CV/k532cMAs5q22T9U1jLEP8FA6zXVoyEGvhY/v5aRpoCOEwZpHCRp04xEiEtw4ymXA0JnI6/2Yp+m2wdhkyYBjrv/xCeoeIhjtMHaVQlMwl/LLSRaaD3YRc9g8WmnntZpsz2BIDMGLhI8QF/reF+l8BFNAyHQbuFhkfQgmNra3KsAqNIwV2bMZRje+TnTzeERjGxeM/kOhYBEulVdfxUOVFE3pDzTG1U8srVdic49+PlfhoFJRLNo+TATkXbJuHKCJA4kjDv7Fw32Y7d6prEahqH/8VdAsjmv2a66BABj/5Yl/pp6mDCA+Xy667Asgk6qKKH5NAeqHSQx7s6+TgitXUMZn6/Se6+l1Wd43iVK+N58xK2MMA8lANaSYddTJ4k8wFEFdYjjaxGqPOEE2ztKFAZTp5nBi8jRxLZ1mfLXZxru8HPVmCSPxx+/4bZe3zyMPHGqb8fEc/nuNkdnogo4opXX2w64mAiFJZftWQ+k5VigT1l9DUN0I7wO7pRI08So8W8/biUmoao+0DgI3kXW9PClEcz0QcbvOCQeVlNE2UowCmiKZ/Otgm3VTGy9ykI7iYbw+5UZs4Z0Ap++dHAQ== openpgp:0x206E9B5B'
|
||||||
|
|
||||||
|
'benedith+4B4B3EB3':
|
||||||
|
name : 'benedith+4B4B3EB3'
|
||||||
|
key : 'AAAAB3NzaC1yc2EAAAADAQABAAACAQCu7Vonudww/tVxrIcIobom8dXZpWMAL/Eel9G+kXtUCpERGqa2XVjUW6rsVRmjS7kS7mwauYDfckEpXBIBk/KGlLtW0drPi4Htpr83H3M8D4ym4RDTN7gN+kozNvqBOWi2zmfobViskWjapyxvAYCDI9iWz56FXPOQWly0XYZaO6mDy1tqBIcsSkuPUcuIl8vshjeMXpgm15uY7uG5Ebkb+O6hiM70ZvCv+xgY+2AOpH2GJmhUALs+rW4v2yqHkyI5IpWAZkSdPLz4mJuqTRrhOEgDfxmUIWhbT1ApbvXlGTMBnuksqpK8Q3YR1XMqh0kQffV5nCXwjSMMd7eKu5EjEGoCpDFm1YGhZA0DVo02STEkc2QXlIV5UAMjFqIrS3t31OTxk53oSzCLqL+0ZZM4bQ1eBjU3wXii107YrPk2MvdvRera1AMSGuQiKHkWn3LOgyR3+FJeerrPvvPj7AaUAIa8rE9kM9EByHIzmQmi/b2FaEnHV9Lk8yc4X9m3Fnwa8OXnZ/NVr7Jrj6Ts+odCu5BTmm3tWnmjZ7R7/xRGJ92+SOAuzCDkbF7mJ3jlQX5gIyK66dY5m5Y0wHmo9Lkv+fGztgYwGj/sjA9c0HjGZiLIYk4DpU9/7BqK/0NmOLEhjLSviU8M9eP/XUk4yeCD8d3ISakTaWlVHywbVci27w=='
|
||||||
|
|
||||||
|
|
||||||
|
cnaas_ssh_keys:
|
||||||
|
'root':
|
||||||
|
- 'mariah+CA747E57'
|
||||||
|
- 'paulo+D479C761'
|
||||||
|
- 'paulo+B36D0448'
|
||||||
|
- 'patlu-2249F294'
|
||||||
|
- 'jocar-infra'
|
||||||
|
- 'benedith+4B4B3EB3'
|
||||||
|
|
||||||
|
|
11
global/overlay/etc/puppet/modules/net/manifests/init.pp
Normal file
11
global/overlay/etc/puppet/modules/net/manifests/init.pp
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# A great class
|
||||||
|
class net {
|
||||||
|
include sunet::tools
|
||||||
|
include sunet::motd
|
||||||
|
|
||||||
|
sunet::ssh_keys { 'netops':
|
||||||
|
config => safe_hiera('netops_ssh_keys', {})
|
||||||
|
}
|
||||||
|
|
||||||
|
include sunet::starship
|
||||||
|
}
|
Loading…
Reference in a new issue