mirror of https://github.com/nucypher/nucypher.git
Respond to RFC on PR #586
parent
2c061fcbd2
commit
3b70195021
|
@ -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 }}"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue