File tree Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Original file line number Diff line number Diff line change 3
3
cardano_node_api_install_method : ' docker'
4
4
5
5
# Cardano Node API version
6
- cardano_node_api_version : ' 0.2.4 '
6
+ cardano_node_api_version : ' 0.3.0 '
7
7
8
8
# Cardano network
9
9
cardano_node_api_network : mainnet
@@ -34,3 +34,9 @@ cardano_node_api_grpc_container_port: '{{ cardano_node_api_grpc_port }}'
34
34
# Metrics port for host/container
35
35
cardano_node_api_metrics_port : 8081
36
36
cardano_node_api_metrics_container_port : ' {{ cardano_node_api_metrics_port }}'
37
+
38
+ # SSL certificate and key (optional)
39
+ cardano_node_api_tls_cert_file_path : ' '
40
+ cardano_node_api_tls_cert_file_container_path : ' {{ cardano_node_api_tls_cert_file_path }}'
41
+ cardano_node_api_tls_key_file_path : ' '
42
+ cardano_node_api_tls_key_file_container_path : ' {{ cardano_node_api_tls_key_file_path }}'
Original file line number Diff line number Diff line change 1
1
---
2
+ - name : Initialize cardano_node_api_docker_volumes fact
3
+ set_fact :
4
+ cardano_node_api_docker_volumes : ' {{ cardano_node_api_docker_volumes | default([]) + [item] }}'
5
+ loop :
6
+ - ' {{ cardano_node_ipc_dir }}:{{ cardano_node_api_ipc_container_dir }}'
7
+
8
+ - name : Add tls certificate to cardano_node_api_docker_volumes fact
9
+ set_fact :
10
+ cardano_node_api_docker_volumes : ' {{ cardano_node_api_docker_volumes | default([]) + [item] }}'
11
+ loop :
12
+ - ' {{ cardano_node_api_tls_cert_file_path }}:{{ cardano_node_api_tls_cert_file_container_path }}'
13
+ - ' {{ cardano_node_api_tls_key_file_path }}:{{ cardano_node_api_tls_key_file_container_path }}'
14
+ when : cardano_node_api_tls_cert_file_path != '' && cardano_node_api_tls_key_file_path != ''
15
+
2
16
- name : Create container
3
17
docker_container :
4
18
name : ' {{ cardano_node_api_docker_container_name }}'
10
24
- ' {{ cardano_node_api_metrics_port }}:{{ cardano_node_api_metrics_container_port }}'
11
25
env :
12
26
API_LISTEN_PORT : ' {{ cardano_node_api_container_port | string }}'
13
- CARDANO_NETWORK : ' {{ cardano_node_api_network }}'
27
+ CARDANO_NETWORK : ' {{ cardano_node_api_network | string }}'
14
28
GRPC_LISTEN_PORT : ' {{ cardano_node_api_grpc_container_port | string }}'
15
29
METRICS_LISTEN_PORT : ' {{ cardano_node_api_metrics_container_port | string }}'
16
- volumes :
17
- - ' {{ cardano_node_ipc_dir }}:{{ cardano_node_api_ipc_container_dir }}'
30
+ TLS_CERT_FILE_PATH : ' {{ cardano_node_api_tls_cert_file_path | string }}'
31
+ TLS_KEY_FILE_PATH : ' {{ cardano_node_api_tls_key_file_path | string }}'
32
+ volumes : ' {{ cardano_node_api_docker_volumes | list }}'
You can’t perform that action at this time.
0 commit comments