From a3410fbc485e09fd11247f0309c32b0e3026f8bd Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 20 Mar 2023 09:37:34 -0300 Subject: Makefile: Also upload managed SSH known_hosts file --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 31e021b..08931fb 100644 --- a/Makefile +++ b/Makefile @@ -48,13 +48,17 @@ $(public-ssh).stripped: $(public-ssh).txt cut -d' ' -f6- < $(public-ssh).txt > $@ -upload-secrets: $(prod-secrets.txt) $(public-ssh).stripped +upload-secrets: $(prod-secrets.txt) $(public-ssh).stripped \ + src/infrastructure/keys/known_hosts.txt ssh euandre.org sudo -u secrets-keeper 'rm -f /opt/secrets/*' rsync \ --rsync-path='sudo -u secrets-keeper rsync' \ --chmod=000 \ -avzP \ - $(prod-secrets.txt) $(public-ssh).stripped euandre.org:/opt/secrets/ + $(prod-secrets.txt) \ + $(public-ssh).stripped \ + src/infrastructure/keys/known_hosts.txt \ + euandre.org:/opt/secrets/ ## Generate the ".ssh/authorized_keys" file and upload -- cgit v1.2.3