-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
- Loading branch information
Showing
8 changed files
with
43 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 15 additions & 15 deletions
30
roles/snek/defaults/main.yml → roles/adder/defaults/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
--- | ||
# Install method | ||
snek_install_method: 'docker' | ||
adder_install_method: 'docker' | ||
|
||
# Snek version | ||
snek_version: '0.17.2' | ||
# Adder version | ||
adder_version: '0.17.2' | ||
|
||
# Base host directory for node data | ||
cardano_node_dir: /opt/cardano | ||
|
||
# DB directory for host/container | ||
snek_db_dir: '{{ cardano_node_dir }}/snek' | ||
adder_db_dir: '{{ cardano_node_dir }}/adder' | ||
|
||
# Config directory for host/container | ||
cardano_node_config_dir: '{{ cardano_node_dir }}/config' | ||
snek_config_container_dir: '{{ cardano_node_config_dir }}' | ||
adder_config_container_dir: '{{ cardano_node_config_dir }}' | ||
|
||
# IPC directory for host/container | ||
cardano_node_ipc_dir: '{{ cardano_node_dir }}/ipc' | ||
snek_ipc_container_dir: '/node-ipc' | ||
adder_ipc_container_dir: '/node-ipc' | ||
|
||
# User/group for file/directory ownership | ||
cardano_node_user: root | ||
cardano_node_group: root | ||
|
||
# Docker image | ||
snek_docker_image: 'ghcr.io/blinklabs-io/snek:{{ snek_version }}' | ||
adder_docker_image: 'ghcr.io/blinklabs-io/adder:{{ adder_version }}' | ||
|
||
# Docker container name | ||
snek_docker_container_name: snek | ||
adder_docker_container_name: adder | ||
|
||
# Port for host/container | ||
snek_container_port: 8080 | ||
snek_port: '{{ snek_container_port }}' | ||
adder_container_port: 8080 | ||
adder_port: '{{ adder_container_port }}' | ||
|
||
# Cardano network | ||
snek_network: mainnet | ||
adder_network: mainnet | ||
|
||
cardano_node_socket_name: node.socket | ||
|
||
# snek arguments (defaults to everything) | ||
snek_arguments: | ||
# adder arguments (defaults to everything) | ||
adder_arguments: | ||
# Local node | ||
# - '-v' | ||
# - '{{ cardano_node_ipc_dir }}:{{ snek_ipc_container_dir }}' | ||
# - '{{ cardano_node_ipc_dir }}:{{ adder_ipc_container_dir }}' | ||
- '-input-chainsync-network' | ||
- '{{ snek_network }}' | ||
- '{{ adder_network }}' |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
- name: Initialize adder_docker_volumes fact | ||
set_fact: | ||
adder_docker_volumes: '{{ adder_docker_volumes | default([]) + [item] }}' | ||
loop: | ||
- '{{ cardano_node_ipc_dir }}:{{ adder_ipc_container_dir }}' | ||
|
||
- name: Create container | ||
docker_container: | ||
name: '{{ adder_docker_container_name }}' | ||
image: '{{ adder_docker_image }}' | ||
restart_policy: unless-stopped | ||
command: "{{ adder_arguments | default([]) }}" | ||
ports: | ||
- '{{ adder_port }}:{{ adder_container_port }}' | ||
env: | ||
CARDANO_NETWORK: '{{ adder_network }}' | ||
volumes: '{{ adder_docker_volumes | list }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.