addressed comments

pull/1605/head
damon 2020-01-24 15:03:28 -08:00
parent 1a8aa967d5
commit f1e7a5f8c6
4 changed files with 15 additions and 12 deletions

View File

@ -1,17 +1,20 @@
#### single command line worker deployment
1. follow the instructions here https://docs.nucypher.com/en/latest/guides/staking_guide.html
1. provision ubuntu hosts accessible from the internet and to which you can ssh into.
* if you need to use a .pem file, use the "amazon" example (in /nucypher/deploy/ansible/worker/inventory.yml)
2. provision ubuntu hosts accessible from the internet and to which you can ssh into.
* if you need to use a .pem file, use the "amazon" example
2. use a locally running geth instance to create accounts for the workers you'll be deploying (you will need the keystores)
3. modify the contents of [inventory.yml](inventory.yml) to add your worker addresses, staker addresses, and passwords, as well as the addresses of your host(s)
3. follow the instructions here https://docs.nucypher.com/en/latest/guides/staking_guide.html
4. from /nucypher/deploy/ansible/worker run `ansible-playbook worker/setup_remote_workers.yml -i worker/inventory.yml -l cassandra`
4. modify the contents of [inventory.yml](inventory.yml) to add your worker addresses, staker addresses, and passwords, as well as the addresses of your host(s)
5. ensure that you have installed nucypher with development tools. `pip install -r dev-requirements.txt`
6. from /nucypher/deploy/ansible/worker run `ansible-playbook worker/setup_remote_workers.yml -i worker/inventory.yml -l cassandra`
#### single command line worker UPDATE
updates all your existing nodes to the latest nucypher docker image
1. from /nucypher/deploy/ansible/worker run `ansible-playbook worker/update_remote_workers.yml -i worker/inventory.yml -l cassandra`
1. from `/nucypher/deploy/ansible/` run `ansible-playbook worker/update_remote_workers.yml -i worker/inventory.yml -l cassandra`

View File

@ -14,7 +14,7 @@
become: yes
become_user: nucypher
copy:
src: "{{GETH_ACCOUNT}}"
src: "{{WORKER_ACCT_KEYSTORE_PATH}}"
dest: "{{geth_dir}}/keystore"
owner: nucypher

View File

@ -11,7 +11,7 @@ all:
default_user: "root"
hosts:
192.168.1.1:
GETH_ACCOUNT: "/Users/macperson/Library/Ethereum/goerli/keystore/UTC--2020-01-21T02-15-18.405738000Z--02e8cbf55e781ad4ca331fe5274be93814d760d0"
WORKER_ACCT_KEYSTORE_PATH: "/Users/macperson/Library/Ethereum/goerli/keystore/UTC--2020-01-21T02-15-18.405738000Z--02e8cbf55e781ad4ca331fe5274be93814d760d0"
NUCYPHER_WORKER_ADDRESS: "0x02e8cbf55E781AD4cA331fe5274Be93814D760D0"
NUCYPHER_STAKER_ADDRESS: "0xD9b6B55b005f1B23b45a9a4aC9669deFac6dAd67"
@ -24,11 +24,11 @@ all:
hosts:
# add a host for each worker/staker
cassandra1.mystakednodez.com:
GETH_ACCOUNT: "/home/ubuntu/.ethereum/goerli/keystore/UTC--2020-01-21T02-15-33.342507000Z--d9e7eC6f9bB558c739CDdbAD5c38F170F1571077"
WORKER_ACCT_KEYSTORE_PATH: "/home/ubuntu/.ethereum/goerli/keystore/UTC--2020-01-21T02-15-33.342507000Z--d9e7eC6f9bB558c739CDdbAD5c38F170F1571077"
NUCYPHER_WORKER_ADDRESS: "0xd9e7eC6f9bB558c739CDdbAD5c38F170F1571077"
NUCYPHER_STAKER_ADDRESS: "0x4ffaEAe86c6A6f2C810F048877fbe1FBB2B27606"
86.75.30.9:
GETH_ACCOUNT: "/home/ubuntu/.ethereum/goerli/keystore/UTC--2020-01-21T02-15-33.342507000Z--d9e7eC6fddde58c739CDdbAD5c38F170F1571077"
WORKER_ACCT_KEYSTORE_PATH: "/home/ubuntu/.ethereum/goerli/keystore/UTC--2020-01-21T02-15-33.342507000Z--d9e7eC6fddde58c739CDdbAD5c38F170F1571077"
NUCYPHER_WORKER_ADDRESS: "0xd9e7eC6fddde58c739CDdbAD5c38F170F1571077"
NUCYPHER_STAKER_ADDRESS: "0x4ffaEAe8aaee6f2C810F048877fbe1FBB2B27606"

View File

@ -2,8 +2,8 @@
hosts: "{{ nucypher_hosts | default('cassandra') }}"
remote_user: "{{default_user}}"
- import_playbook: include/setup_user.yml
- import_playbook: include/setup_docker.yml
# - import_playbook: include/setup_user.yml
# - import_playbook: include/setup_docker.yml
- import_playbook: include/setup_geth.yml
- import_playbook: include/init_nucypher.yml
- import_playbook: include/run_nucypher_ursula.yml