consensys.nethermind

Ansible 角色: Nethermind

描述

这是一个 Ansible 角色,用于安装、配置和运行 Nethermind: 一个基于 .NET Core 的以太坊执行层客户端,旨在性能和灵活性方面表现出色。

目录

支持的平台

* MacOS
* Debian
* Ubuntu
* Redhat (CentOS/Fedora)
* Amazon

角色变量

所有可重写的变量存储在 defaults/main.yml 文件中。描述中仅列出环境变量名称的变量,与 Ansible 变量对应,您可以在运行时将其更改为不同于默认值的值。有关更多信息,请参考 Nethermind 的 文档

名称 默认值 描述
nethermind_version "latest" 要安装和运行的 Nethermind 版本。所有可用版本在 Nethermind 的 解决方案 页面列出。去掉版本前的 'v'。例如:1.4.0
nethermind_user nethermind Nethermind 用户
nethermind_group nethermind Nethermind 组
nethermind_download_url unset 下载的 tar.gz 文件。如果需要从自定义位置(如内部仓库)获取 Nethermind,可以使用此项。
nethermind_install_dir /opt/nethermind 安装路径
nethermind_config_dir /etc/nethermind 默认配置路径
nethermind_data_dir /opt/nethermind/data 数据目录路径
nethermind_log_dir /var/log/nethermind 日志路径
nethermind_managed_service true 启用 systemd 服务(如果在 Darwin 上则为 launchd)
nethermind_launchd_dir /Library/LaunchAgents 默认的 launchd 目录
nethermind_systemd_dir /etc/systemd/system/ 默认的 systemd 目录
nethermind_systemd_state restarted systemd 服务状态的默认选项
nethermind_config_base mainnet 我们想要使用的配置基础。列表请见 这里。去掉名称中的 '.cfg'。
...(省略部分变量) ...
nethermind_wallet_dev_accounts 10 开发账户的数量

示例剧本

  1. 默认设置: 从 Galaxy 安装角色
ansible-galaxy install consensys.nethermind

创建一个 requirements.yml,内容如下: 将下面的 x.y.z 替换为您希望使用的版本,可在 Nethermind 的 解决方案 页面找到。

---
- hosts: localhost
  connection: local
  force_handlers: True

  roles:
  - role: consensys.nethermind
    vars:
      nethermind_version: x.y.z

运行命令:

ansible-playbook -v /path/to/requirements.yml
  1. 通过 GitHub 安装
ansible-galaxy install git+https://github.com/ConsenSys/ansible-role-nethermind.git

创建一个 requirements.yml,内容如下: 将下面的 x.y.z 替换为您希望使用的版本,可在 Nethermind 的 解决方案 页面找到。

---
- hosts: localhost
  connection: local
  force_handlers: True

  roles:
  - role: ansible-role-nethermind
    vars:
      nethermind_version: x.y.z

运行命令:

ansible-playbook -v /path/to/requirements.yml

许可

Apache

作者信息

Consensys, 2022

关于项目

Nethermind is an open-source .NET core ethereum client

安装
ansible-galaxy install consensys.nethermind
许可证
apache-2.0
下载
4.7k
拥有者
Consensys is the software engineering leader of the blockchain space. Our full-stack Ethereum products help developers build next-generation networks.