Skip to content

Instantly share code, notes, and snippets.

@miohtama
Created August 25, 2017 14:20
Show Gist options
  • Save miohtama/a961a7091d47df88007a1c3a35e5a558 to your computer and use it in GitHub Desktop.
Save miohtama/a961a7091d47df88007a1c3a35e5a558 to your computer and use it in GitHub Desktop.
Parity Ansibe playbook
- name: Install dependencies
apt: name={{item}} update_cache=yes
with_items:
- software-properties-common
become: yes
- name: Install Ethereum repositories
apt_repository: repo='ppa:ethereum/ethereum'
become: yes
# NTP needed for clock sync
- name: Install Ethereum
apt: name={{item}} update_cache=yes state=latest
with_items:
- ethereum
- ntp
become: yes
- name: Download Parity
become: yes
get_url:
url: "{{ parity_url }}"
dest: /tmp/parity.deb
force: yes
- name: Install Parity
apt:
deb: /tmp/parity.deb
become: yes
notify:
- Restart parity
- name: Create parity user
user:
name: "{{ parity_user }}"
shell: /bin/bash
become: yes
- name: Setup systemd script
template:
src: systemd.conf
dest: /etc/systemd/system/parity-{{parity_network}}.service
become: yes
notify:
- Restart parity
parity_user: parity-kovan
parity_args: --chain=kovan --unlock xxxxxxxxx --password password.txt --jsonrpc-apis "web3,eth,net,parity,traces,rpc,personal" --jsonrpc-port 8547 --no-ipc --port 30306 --tracing on --allow-ips=public
parity_url: http://d1h4xl4cr1h0mo.cloudfront.net/v1.6.6/x86_64-unknown-linux-gnu/parity_1.6.6_amd64.deb
parity_network: kovan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment