diff --git a/README.md b/README.md index af74785..3e54698 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,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_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) | diff --git a/defaults/main.yml b/defaults/main.yml index bca054a..134554c 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -64,6 +64,7 @@ besu_cmdline_args: [] besu_env_opts: [] besu_permissions_nodes_contract_version: 2 besu_xdns_enabled: "false" +besu_static_nodes_file="" # privacy besu_privacy_enabled: "false" diff --git a/templates/config.toml.j2 b/templates/config.toml.j2 index 1a56cec..707071a 100644 --- a/templates/config.toml.j2 +++ b/templates/config.toml.j2 @@ -106,6 +106,11 @@ permissions-nodes-contract-version={{besu_permissions_nodes_contract_version}} bootnodes=[{{besu_bootnodes|map('to_json')|join(',')}}] {% endif %} +{% if besu_static_nodes_file != "" %} +# static-nodes +static_nodes_file="{{ besu_static_nodes_file }}" +{% endif %} + {% if besu_privacy_enabled|bool == True %} # Orion privacy-enabled=true