mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Make all fabfile.py use the SSH key path in ssh_key.py
This commit is contained in:
parent
877bd65410
commit
329cf9cf81
3
benchmarking-tests/fabfile.py
vendored
3
benchmarking-tests/fabfile.py
vendored
@ -7,6 +7,7 @@ from fabric.operations import run, put
|
|||||||
from fabric.context_managers import settings
|
from fabric.context_managers import settings
|
||||||
|
|
||||||
from hostlist import public_dns_names
|
from hostlist import public_dns_names
|
||||||
|
from ssh_key import ssh_key_path
|
||||||
|
|
||||||
# Ignore known_hosts
|
# Ignore known_hosts
|
||||||
# http://docs.fabfile.org/en/1.10/usage/env.html#disable-known-hosts
|
# http://docs.fabfile.org/en/1.10/usage/env.html#disable-known-hosts
|
||||||
@ -18,7 +19,7 @@ env.hosts = public_dns_names
|
|||||||
|
|
||||||
# SSH key files to try when connecting:
|
# SSH key files to try when connecting:
|
||||||
# http://docs.fabfile.org/en/1.10/usage/env.html#key-filename
|
# http://docs.fabfile.org/en/1.10/usage/env.html#key-filename
|
||||||
env.key_filename = 'pem/bigchaindb.pem'
|
env.key_filename = ssh_key_path
|
||||||
|
|
||||||
|
|
||||||
@task
|
@task
|
||||||
|
8
deploy-cluster-aws/fabfile.py
vendored
8
deploy-cluster-aws/fabfile.py
vendored
@ -15,6 +15,7 @@ from fabric.operations import run, put
|
|||||||
from fabric.context_managers import settings
|
from fabric.context_managers import settings
|
||||||
|
|
||||||
from hostlist import public_dns_names
|
from hostlist import public_dns_names
|
||||||
|
from ssh_key import ssh_key_path
|
||||||
|
|
||||||
# Ignore known_hosts
|
# Ignore known_hosts
|
||||||
# http://docs.fabfile.org/en/1.10/usage/env.html#disable-known-hosts
|
# http://docs.fabfile.org/en/1.10/usage/env.html#disable-known-hosts
|
||||||
@ -26,7 +27,7 @@ env.hosts = public_dns_names
|
|||||||
|
|
||||||
# SSH key files to try when connecting:
|
# SSH key files to try when connecting:
|
||||||
# http://docs.fabfile.org/en/1.10/usage/env.html#key-filename
|
# http://docs.fabfile.org/en/1.10/usage/env.html#key-filename
|
||||||
env.key_filename = 'pem/bigchaindb.pem'
|
env.key_filename = ssh_key_path
|
||||||
|
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
@ -48,6 +49,11 @@ def set_host(host_index):
|
|||||||
env.hosts = [public_dns_names[int(host_index)]]
|
env.hosts = [public_dns_names[int(host_index)]]
|
||||||
|
|
||||||
|
|
||||||
|
@task
|
||||||
|
def test_ssh():
|
||||||
|
run('echo "If you see this, then SSH to a remote host worked."')
|
||||||
|
|
||||||
|
|
||||||
# Install base software
|
# Install base software
|
||||||
@task
|
@task
|
||||||
@parallel
|
@parallel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user