Skip to content

Commit

Permalink
fix: add CARDANO_NETWORK to cardano-node container
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <[email protected]>
  • Loading branch information
wolf31o2 committed Nov 14, 2023
1 parent 142d2d3 commit c023eb8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions roles/cardano_node/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,8 @@ cardano_node_socket_name: node.socket
# Cardano network
cardano_node_network: mainnet

# Config
cardano_node_config_file: '{{ cardano_node_dir }}/config/{{ cardano_node_network }}-config.json'

# Topology
cardano_node_topology_file: '{{ cardano_node_dir }}/config/{{ cardano_node_network }}-topology.json'
3 changes: 2 additions & 1 deletion roles/cardano_node/tasks/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
- '{{ cardano_node_port }}:{{ cardano_node_container_port }}'
- '{{ cardano_node_metrics_port }}:{{ cardano_node_metrics_container_port }}'
env:
CARDANO_CONFIG: '{{ cardano_node_dir }}/config/{{ cardano_node_network }}-config.json'
CARDANO_CONFIG: '{{ cardano_node_config_file }}'
CARDANO_DATABASE_PATH: '{{ cardano_node_db_container_dir }}'
CARDANO_NETWORK: '{{ cardano_node_network }}'
CARDANO_NODE_SOCKET_PATH: '{{ cardano_node_ipc_container_dir }}/{{ cardano_node_socket_name }}'
CARDANO_PORT: '{{ cardano_node_port | string }}'
CARDANO_SOCKET_PATH: '{{ cardano_node_ipc_container_dir }}/{{ cardano_node_socket_name }}'
Expand Down
1 change: 0 additions & 1 deletion roles/cardano_node/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
group: '{{ cardano_node_group }}'
mode: '0755'
loop:
- '{{ cardano_node_dir }}'
- '{{ cardano_node_db_dir }}'
- '{{ cardano_node_ipc_dir }}'

Expand Down

0 comments on commit c023eb8

Please sign in to comment.