From 3b701950211dd3faba07305670a360743b718ec1 Mon Sep 17 00:00:00 2001 From: Kieran Prasch Date: Wed, 5 Dec 2018 10:40:52 -0800 Subject: [PATCH] Respond to RFC on PR #586 --- deploy/ansible/provision.yml | 6 +++--- deploy/ansible/run_seednodes.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/deploy/ansible/provision.yml b/deploy/ansible/provision.yml index 37d1081f6..576b234b6 100644 --- a/deploy/ansible/provision.yml +++ b/deploy/ansible/provision.yml @@ -27,7 +27,7 @@ volume_type: gp2 volume_size: "{{ ec2_volume_size }}" delete_on_termination: true - register: nucypher_swarm + register: nucypher_fleet - name: "Add Provisioned Servers as Hosts" add_host: @@ -37,9 +37,9 @@ ec2_tag_Type: "{{ ec2_tag_Type}}" ec2_tag_Role: "{{ nucypher_network_name }}" ec2_ip_address: "{{ item.public_ip }}" - with_items: "{{ nucypher_swarm.instances }}" + with_items: "{{ nucypher_fleet.instances }}" - name: Wait for the instances to boot by checking the ssh port wait_for: host={{item.public_ip}} port=22 delay=15 timeout=300 state=started - with_items: "{{ nucypher_swarm.instances }}" + with_items: "{{ nucypher_fleet.instances }}" diff --git a/deploy/ansible/run_seednodes.yml b/deploy/ansible/run_seednodes.yml index 7c3b3660a..61b4b141a 100644 --- a/deploy/ansible/run_seednodes.yml +++ b/deploy/ansible/run_seednodes.yml @@ -51,8 +51,8 @@ LANG: C.UTF-8 - name: "Generate Ursula passphrase" - shell: head -c 32 /dev/urandom | sha256sum - register: ursula_passphrase + shell: head -c 32 /dev/urandom | sha256sum | awk '{print $1}' + register: ursula_password - name: "Configure Ursula" shell: "pipenv run nucypher configure install --rest-host {{inventory_hostname}}" @@ -61,7 +61,7 @@ vars: ansible_python_interpreter: /usr/bin/python3 environment: - NUCYPHER_KEYRING_PASSPHRASE: "{{ ursula_passphrase.stdout }}" + NUCYPHER_KEYRING_PASSPHRASE: "{{ ursula_password.stdout }}" LC_ALL: C.UTF-8 LANG: C.UTF-8 ignore_errors: yes