INNER CODE UNIT · Python
deploy_key
onedr0p/cluster-template · template/scripts/plugin.py:78
def deploy_key(file_path: str = 'deploy.key') -> str:
return _read_stripped(file_path)
# Return the Flux webhook token from flux-webhook-token.txt
def webhook_token(file_path: str = 'flux-webhook-token.txt') -> str:
return _read_stripped(file_path)
CONFIG_FILE = 'cluster.toml'
# SSH host keys as published by each provider. Must cover every host in
# KNOWN_SSH_HOSTS in validate.py; any other host requires the user to set
# repository.known_hosts in cluster.toml.
KNOWN_HOSTS = {
'github.com': (
'github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl\n'
'github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=\n'