From 935ebc2d8fd18d6159e612567a3ddecf2ff72de2 Mon Sep 17 00:00:00 2001 From: damon Date: Tue, 21 Jan 2020 10:36:13 -0800 Subject: [PATCH] add extra_options for ursula invocation --- deploy/ansible/worker/include/run_nucypher_ursula.yml | 2 +- deploy/ansible/worker/inventory.yml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/deploy/ansible/worker/include/run_nucypher_ursula.yml b/deploy/ansible/worker/include/run_nucypher_ursula.yml index b8b1ac75d..d09724169 100644 --- a/deploy/ansible/worker/include/run_nucypher_ursula.yml +++ b/deploy/ansible/worker/include/run_nucypher_ursula.yml @@ -10,7 +10,7 @@ state: started image: nucypher/nucypher:latest restart_policy: "unless-stopped" - command: "nucypher ursula run --teacher discover.nucypher.network:9151 --poa" + command: "nucypher ursula run --teacher discover.nucypher.network:9151 --poa {{extra_options}}" volumes: - /home/nucypher:/root/.local/share/ ports: diff --git a/deploy/ansible/worker/inventory.yml b/deploy/ansible/worker/inventory.yml index a11eed1ba..9bf4a1ea2 100644 --- a/deploy/ansible/worker/inventory.yml +++ b/deploy/ansible/worker/inventory.yml @@ -4,7 +4,8 @@ all: children: cassandra: children: - digitalocean: + #### digital ocean uses default user "root" so we have to group these separately + digitalocean: # this can be anything... "my_nodes" or "home" vars: default_user: "root" hosts: @@ -12,6 +13,8 @@ all: GETH_ACCOUNT: "/Users/macperson/Library/Ethereum/goerli/keystore/UTC--2020-01-21T02-15-18.405738000Z--02e8cbf55e781ad4ca331fe5274be93814d760d0" NUCYPHER_WORKER_ADDRESS: "0x02e8cbf55E781AD4cA331fe5274Be93814D760D0" NUCYPHER_STAKER_ADDRESS: "0xD9b6B55b005f1B23b45a9a4aC9669deFac6dAd67" + #### amazon configures new instances with a .pem keypair based auth + # so we need this ansible_ssh_private_key_file variable amazon: vars: ansible_ssh_private_key_file: ~/Downloads/damon-ansible-testing.pem