consensys.lighthouse

Ansible 角色: lighthouse

描述

Ansible 角色用于安装、配置和运行 lighthouse:

目录

支持的平台

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

依赖项

  • Docker

角色变量:

所有可以被覆盖的变量存储在 defaults/main.yml 文件中。这些变量主要是配置选项。请参阅 lighthouse 文档 以获取更多信息。

名称 默认值 描述
lighthouse_version unset 必填 要安装和运行的 lighthouse 版本。
lighthouse_user lighthouse lighthouse 用户
lighthouse_group lighthouse lighthouse 组
lighthouse_base_dir /opt/lighthouse 安装路径
lighthouse_config_dir /etc/lighthouse 默认配置路径
lighthouse_data_dir /opt/lighthouse/data 数据目录路径
lighthouse_log_dir /var/log/lighthouse 日志目录路径
lighthouse_log_level "info" 日志级别
lighthouse_log_max_size 25 日志文件大小,单位 MB,达到此大小将触发轮换
lighthouse_log_max_number 14 保留的轮换日志文件数量
lighthouse_network mainnet 预定义的网络配置
lighthouse_jwt_auth_file "/etc/jwt-secret.hex" JWT 文件路径
lighthouse_enable_doppelganger_protection True 默认启用双重保护
lighthouse_validator_enabled "False" 是否以验证者模式运行 - 请注意,密钥和机密需要由您自己复制
lighthouse_execution_urls "http://127.0.0.1:8551" elc 执行 URL
lighthouse_validator_beaconnodes "http://lighthouse-beacon:9596" 验证者使用的信标端点
lighthouse_checkpoint_sync_url "https://beaconstate-{{lighthouse_network}}.chainsafe.io" 检查点同步以加快速度
lighthouse_default_fee_recipient "" 默认费用接收地址
lighthouse_disable_deposit_contract_sync True 验证者的存款合约同步
lighthouse_keystores_dir "/config/keys" 验证者的密钥目录
lighthouse_secrets_dir "/config/secrets" 验证者的机密目录

密钥/机密

请注意,您必须将自己的机密和密钥放置在您使用的配置目录中,即 lighthouse_config_dir

示例剧本

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

创建一个 requirements.yml 文件,内容如下: 将下面的 x.y.z 替换为您想使用的版本

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

  roles:
  - role: consensys.lighthouse
    vars:
      lighthouse_version: x.y.z

使用 ansible-playbook 运行:

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

创建一个 requirements.yml 文件,内容如下: 将下面的 x.y.z 替换为您想使用的版本

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

  roles:
  - role: ansible-role-lighthouse
    vars:
      lighthouse_version: x.y.z

使用 ansible-playbook 运行:

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

许可证

Apache

作者信息

Consensys, 2023

关于项目

lighthouse is an open-source ethereum 2 client

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