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 33cardano_node_api_install_method : ' docker'
44
55# Cardano Node API version
6- cardano_node_api_version : ' 0.2.4 '
6+ cardano_node_api_version : ' 0.3.0 '
77
88# Cardano network
99cardano_node_api_network : mainnet
@@ -34,3 +34,9 @@ cardano_node_api_grpc_container_port: '{{ cardano_node_api_grpc_port }}'
3434# Metrics port for host/container
3535cardano_node_api_metrics_port : 8081
3636cardano_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 11---
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+
216- name : Create container
317 docker_container :
418 name : ' {{ cardano_node_api_docker_container_name }}'
1024 - ' {{ cardano_node_api_metrics_port }}:{{ cardano_node_api_metrics_container_port }}'
1125 env :
1226 API_LISTEN_PORT : ' {{ cardano_node_api_container_port | string }}'
13- CARDANO_NETWORK : ' {{ cardano_node_api_network }}'
27+ CARDANO_NETWORK : ' {{ cardano_node_api_network | string }}'
1428 GRPC_LISTEN_PORT : ' {{ cardano_node_api_grpc_container_port | string }}'
1529 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