Encrypt Public keys and etc.

This commit is contained in:
Kazuhiro MUSASHI 2020-11-02 01:04:19 +09:00
parent 55758a01ab
commit 4432c311e8
3 changed files with 68 additions and 40 deletions

View File

@ -1,38 +1,58 @@
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn
NhAAAAAwEAAQAAAYEAtWmcJslzZaMUgqKoFW+lWI8XLpOh6rzHHb4h6ueUDQSwk9ShrxlA
RewgJTbOUIcVEl28xXPDmNm1VKMHCRMBqvCSQVJHdVFCkLFzIX++t0n9A3tJef1GSsCc/D
g2si/TO4Vux56mkDFqp0mJk3nI2obihh78PPSJAd6ScNZDUYGP2jM33ubbeytm/qPITd5I
gEKbKgQMzKDC1VaFmwTN9idhvFS8U2dA1oVG1CtOVhAPEQ5xqY5Dwfp4FZSrnvF64DZ7UX
PKG1ww4mxonECkM2hmcRLHs/FPGXpCsAUUGT9DAL3OJSxHDc+46i3Naxc6+mRyI9F2Wv9H
HDT1d3U7nL9ZQggm0L/EYbS79LqkzBUnYRNerkuNve+G13wxl45d5oPC9D+wXdbg/LSZyc
r3eNyzSiuwOZWezJvhKZ4t4qUJvLvi4pHxiMcBHAc4bMKkNATHvLMtINvM2w9iySikgZbp
JEKLWSOJF1qqwtJZKs10EDkUX6v2+fyw4Nvg+S6hAAAFiFglwLVYJcC1AAAAB3NzaC1yc2
EAAAGBALVpnCbJc2WjFIKiqBVvpViPFy6Toeq8xx2+IernlA0EsJPUoa8ZQEXsICU2zlCH
FRJdvMVzw5jZtVSjBwkTAarwkkFSR3VRQpCxcyF/vrdJ/QN7SXn9RkrAnPw4NrIv0zuFbs
eeppAxaqdJiZN5yNqG4oYe/Dz0iQHeknDWQ1GBj9ozN97m23srZv6jyE3eSIBCmyoEDMyg
wtVWhZsEzfYnYbxUvFNnQNaFRtQrTlYQDxEOcamOQ8H6eBWUq57xeuA2e1FzyhtcMOJsaJ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AyNTYAAAAIbmlzdHAyNTYAAABBBAej4lWqrN/bly94FQVTjNEsBxK7RiMlAkXrJQhnr6nLaLK0yEAJUHGZXF0LwnxYH9r734W6eDfQiqyqmbE2vPg=
md5:5549740853f444a4f9b5e5b216d9c1c0:salt:36-148-76-6-241-207-209-60:aes-256-cfb:tHxngshzJdvVzVVD7wFIR2wgl0NJszGuyRa+vcqs/OUr6KiCvlcdUWeHlpyg
384vuGuXBWHiFnftXh6BbQGnqdEnNahkuXcT4ZWRwJx2KGkPLWcu1BpuKLy8
tX0A2SQPrngJ5ZxV5q0CjhS4y5Z+m2nqUQ/gBS9V3KYi/zw3DPocTqrJeNnu
Yp+ig312GqtjRe8DDUit9B2Fyyeiru548+/29CxLWTqXUVcyYGa/nD06n1a9
YxSXZvTfS+OKc3fuxNlOS5Dcp1204nr2840y1y02kOUX8Ai44WCDGw6z

View File

@ -16,10 +16,14 @@ directory '/root/.ssh/' do
end
%w(id_rsa known_hosts).each do |f|
remote_file "/root/.ssh/#{f}" do
encrypted_remote_file "/root/.ssh/#{f}" do
owner 'root'
group 'root'
mode '600'
source "files/root/.ssh/#{f}"
password ENV['ITAMAE_PASSWORD']
end
end