adding static-nodes file

pull/43/head
Joshua Fernandes 2 years ago
parent 9664502b8f
commit d740678d56
  1. 2
      README.md
  2. 3
      defaults/main.yml
  3. 10
      tasks/config.yml

@ -89,7 +89,7 @@ All variables which can be overridden are stored in [defaults/main.yml](defaults
| `besu_metrics_host` | 0.0.0.0 | Specifies the host on which Prometheus accesses Besu metrics. The metrics server respects the `besu_whitelist` option |
| `besu_metrics_port` | 9545 | Specifies the port on which Prometheus accesses Besu metrics |
| `besu_bootnodes` | [] | List of comma-separated enode URLs for P2P discovery bootstrap. When connecting to MainNet or public testnets, the default is a predefined list of enode URLs |
| `besu_static_nodes_file` | [] | Path to the [static nodes file](https://besu.hyperledger.org/en/stable/Reference/CLI/CLI-Syntax/#static-nodes-file) |
| `besu_static_nodes_file` | /etc/besu/static-nodes.json | Path to the [static nodes file](https://besu.hyperledger.org/en/stable/Reference/CLI/CLI-Syntax/#static-nodes-file) |
| `besu_host_whitelist` | `["*"]` | Comma-separated list of hostnames to allow access to the JSON-RPC API. By default, access from localhost and 127.0.0.1 is accepted. |
| `besu_permissions_accounts_config_file` | ___unset___ | Path to the [local accounts permissioning file](http://besu.hyperledger.org/en/stable/HowTo/Limit-Access/Local-Permissioning/#permissions-configuration-file) |
| `besu_permissions_nodes_config_file` | ___unset___ | Path to the [local nodes permissioning file](http://besu.hyperledger.org/en/stable/HowTo/Limit-Access/Local-Permissioning/#permissions-configuration-file) |

@ -22,6 +22,7 @@ besu_config_template: "config.toml.j2"
besu_data_dir: "{{ besu_base_dir }}/data"
besu_log_dir: "/var/log/besu"
besu_profile_file: "/etc/profile.d/besu-path.sh"
besu_static_nodes_file: "{{ besu_config_dir }}/static-nodes.json"
# Managed service config
besu_managed_service: true
@ -69,7 +70,7 @@ besu_env_opts: []
besu_env_vars: {}
besu_permissions_nodes_contract_version: 2
besu_xdns_enabled: "false"
besu_static_nodes_file: ""
besu_static_nodes: []
# privacy
besu_privacy_enabled: "false"

@ -18,6 +18,16 @@
become: true
register: config_toml
- name: Generate static nodes file if defined
copy:
dest: "{{ besu_static_nodes_file }}"
content: "{{ besu_static_nodes }}"
owner: "{{ besu_user }}"
group: "{{ besu_group }}"
mode: 0644
become: true
when: besu_static_nodes != []
- name: JWT secret
block:
- name: Check if a JWT secret already exists

Loading…
Cancel
Save