adding in option to specify a custom node private key

Signed-off-by: Joshua Fernandes <joshua.fernandes@consensys.net>
pull/5/head
Joshua Fernandes 5 years ago
parent 5c29088db4
commit cd2bf0bca6
  1. 1
      README.md
  2. 1
      defaults/main.yml
  3. 5
      templates/config.toml.j2

@ -36,6 +36,7 @@ All variables which can be overridden are stored in [defaults/main.yml](defaults
| `besu_download_url` | https://bintray.com/hyperledger-org/besu-repo/download_file?file_path=besu-{{ besu_version }}.tar.gz | The download tar.gz file used. You can use this if you need to retrieve besu from a custom location such as an internal repository. | | `besu_download_url` | https://bintray.com/hyperledger-org/besu-repo/download_file?file_path=besu-{{ besu_version }}.tar.gz | The download tar.gz file used. You can use this if you need to retrieve besu from a custom location such as an internal repository. |
| `besu_install_dir` | /opt/besu | Path to install to | | `besu_install_dir` | /opt/besu | Path to install to |
| `besu_config_dir` | /etc/besu | Path for default configuration | | `besu_config_dir` | /etc/besu | Path for default configuration |
| `besu_node_private_key_file` | "" | Path for node private key, if supplied. This needs to include the node key file name and path like so `/home/me/me_node/myPrivateKey`. If not supplied Besu will create one automatically |
| `besu_data_dir` | /opt/besu/data | Path for data directory| | `besu_data_dir` | /opt/besu/data | Path for data directory|
| `besu_log_dir` | /var/log/besu | Path for logs | | `besu_log_dir` | /var/log/besu | Path for logs |
| `besu_profile_file` | /etc/profile.d/besu-path.sh | Path to allow loading Besu into the system PATH | | `besu_profile_file` | /etc/profile.d/besu-path.sh | Path to allow loading Besu into the system PATH |

@ -11,6 +11,7 @@ besu_download_url: "https://bintray.com/hyperledger-org/besu-repo/download_file?
besu_base_dir: "/opt/besu" besu_base_dir: "/opt/besu"
besu_install_dir: "{{ besu_base_dir }}/besu-{{ besu_version }}" besu_install_dir: "{{ besu_base_dir }}/besu-{{ besu_version }}"
besu_current_dir: "{{ besu_base_dir }}/current" besu_current_dir: "{{ besu_base_dir }}/current"
besu_node_private_key_file: ""
besu_config_dir: "/etc/besu" besu_config_dir: "/etc/besu"
besu_config_template: "config.toml.j2" besu_config_template: "config.toml.j2"
besu_data_dir: "{{ besu_base_dir }}/data" besu_data_dir: "{{ besu_base_dir }}/data"

@ -2,6 +2,11 @@
data-path="{{besu_data_dir}}" data-path="{{besu_data_dir}}"
logging="{{besu_log_level}}" logging="{{besu_log_level}}"
# private_key
{% if besu_node_private_key_file != "" %}
node-private-key-file="{{besu_node_private_key_file}}"
{% endif %}
{% if besu_network.lower() in ["mainnet", "rinkeby", "goerli", "ropsten", "dev"] %} {% if besu_network.lower() in ["mainnet", "rinkeby", "goerli", "ropsten", "dev"] %}
network="{{besu_network}}" network="{{besu_network}}"
{% else %} {% else %}

Loading…
Cancel
Save