server.garden privileged automation agent

upload_known_hosts.tpl 406B

    #!/bin/bash FILE_PATH="rootsystem/known-hosts/digitalocean-$(curl -sS http://169.254.169.254/metadata/v1/id)" IP_ADDRESS="$(curl -sS http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address)" CONTENT="$( cat /etc/ssh/ssh_host_ecdsa_key.pub /etc/ssh/ssh_host_ed25519_key.pub /etc/ssh/ssh_host_rsa_key.pub | awk "{ print \"$IP_ADDRESS \""'$1" "$2'" }" )" ${ post_to_object_storage_shell_script }