From 1e771ad1284a162a7389e8acf6d13abcfebedc54 Mon Sep 17 00:00:00 2001 From: Brett Henderson Date: Wed, 22 Jan 2020 10:05:47 +1000 Subject: [PATCH] Add privacy settings to config template (#9) * Add privacy settings to config template Signed-off-by: Brett Henderson --- README.md | 3 +++ templates/config.toml.j2 | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index ee977d1..31b94c1 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,9 @@ All variables which can be overridden are stored in [defaults/main.yml](defaults | `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_cmdline_args` | "" | Command line args that are passed in as overrides | | `besu_env_opts` | "" | Environmental variable BESU_OPTS that gets passed to the JVM. eg: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 | +| `orion_version` | ___unset___ | Version of Orion installed. When supplied, adds required privacy config items and requires `orion_config_dir` and `orion_key_name` to be set | +| `orion_config_dir` | ___unset___ | Path to Orion configuration directory | +| `orion_key_name` | ___unset___ | Name of the Node Key | ### Example Playbook diff --git a/templates/config.toml.j2 b/templates/config.toml.j2 index 35ac55c..9b49aae 100644 --- a/templates/config.toml.j2 +++ b/templates/config.toml.j2 @@ -59,3 +59,10 @@ metrics-port={{besu_metrics_port}} # bootnodes bootnodes={{besu_bootnodes}} {% endif %} + +{% if orion_version is defined %} +# Orion +privacy-enabled=true +privacy-url="http://127.0.0.1:8888" +privacy-public-key-file="{{ orion_config_dir }}/{{ orion_key_name }}.pub" +{% endif %} \ No newline at end of file