consensys.prysm
Ansible Role: Prysm
Description
This Ansible role installs, configures, and runs prysm, which is an Ethereum 2 client for enterprises.
Table of Contents
Supported Platforms
* MacOS
* Debian
* Ubuntu
* Redhat(CentOS/Fedora)
* Amazon
Role Variables
All variables that you can change are located in the defaults/main.yml file. These variables mostly represent configuration options. For more details, check the prysm documentation.
Name | Default Value | Description |
---|---|---|
prysm_version |
unset | REQUIRED Version of prysm to install and run. |
prysm_user |
prysm | User for prysm |
prysm_group |
prysm | Group for prysm |
prysm_base_dir |
/opt/prysm | Directory where prysm will be installed. |
prysm_config_dir |
/etc/prysm | Directory for the default configuration. |
prysm_data_dir |
/opt/prysm/data | Directory for data storage. |
prysm_validator_data_dir |
/opt/prysm/validatorData | Directory for validator data. |
prysm_log_dir |
/var/log/prysm | Directory for log files. |
prysm_log_level |
"info" | Level of log details to show. |
prysm_network |
mainnet | Predefined network setting. |
prysm_jwt_auth_file |
"/etc/jwt-secret.hex" | Path to the JWT file. |
prysm_execution_urls |
"http://127.0.0.1:8551" | Execution URL for elc. |
prysm_validator_beacon_interface |
"http://127.0.0.1" | Beacon endpoint for the validator. |
prysm_checkpoint_sync_url |
"https://beaconstate-{{prysm_network}}.chainsafe.io" | URL for checkpoint sync to improve performance. |
prysm_default_fee_recipient |
"" | Default address for fee recipient. |
prysm_keystores_dir |
"/config/keys" | Directory for validator keys. |
prysm_beacon_enabled |
True | Indicates if the beacon node should run by default. |
prysm_validator_enabled |
False | Indicates whether to run in validator mode (note that you need to manage secrets and keys). |
Keys/Secrets
Please remember to place your own secrets and keys in the configuration directory you are using, which is prysm_config_dir
.
Example Playbook
Default Setup: Install the role from Galaxy:
ansible-galaxy install consensys.prysm
Create a
requirements.yml
like this: Replacex.y.z
with the version you want from the prysm releases page:--- - hosts: localhost connection: local force_handlers: True roles: - role: consensys.prysm vars: prysm_version: vx.y.z
Run with Ansible Playbook:
ansible-playbook -v /path/to/requirements.yml
Install via GitHub:
ansible-galaxy install git+https://github.com/consensys/ansible-role-prysm.git
Create a
requirements.yml
similar to the one above: Replacex.y.z
with your desired version:--- - hosts: localhost connection: local force_handlers: True roles: - role: ansible-role-prysm vars: prysm_version: vx.y.z
Run with Ansible Playbook:
ansible-playbook -v /path/to/requirements.yml
License
Apache
Author Information
PegaSysEng, 2020
Informazioni sul progetto
Prysm is an open-source ethereum 2 client
Installa
ansible-galaxy install consensys.prysm
Licenza
Unknown
Download
1.4k
Proprietario
Consensys is the software engineering leader of the blockchain space. Our full-stack Ethereum products help developers build next-generation networks.