Skip to content

Commit

Permalink
v1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
PolkachuIntern committed Sep 14, 2022
1 parent 78abdde commit 58d038e
Show file tree
Hide file tree
Showing 26 changed files with 570 additions and 32 deletions.
33 changes: 31 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
# ibc-relayer
# IBC-Relayer Ansible Setup

Hello world
## Design Philosophy

1. Support both hermes and rly
1. Make config file extensible by DRY principle

## Guide

First copy it to your own inventory file so you can customize it to suit your needs:

```bash
cp inventory.sample inventory
```

To install rly

```bash
ansible-playbook main_rly_install.yml
```

To install Hermes

```bash
ansible-playbook main_hermes_install.yml
```

To install a specific Hermes relayer hub

```bash
ansible-playbook main_hermes_config.yml -e "target=juno"
```
2 changes: 2 additions & 0 deletions group_vars/gravity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rest_port: 3003
telemetry_port: 4003
2 changes: 2 additions & 0 deletions group_vars/juno.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rest_port: 3001
telemetry_port: 4001
2 changes: 2 additions & 0 deletions group_vars/kujira.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rest_port: 3005
telemetry_port: 4005
2 changes: 2 additions & 0 deletions group_vars/osmosis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rest_port: 3002
telemetry_port: 4002
10 changes: 6 additions & 4 deletions inventory.sample → inventory.sample.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
ansible_user=ubuntu
ansible_port=22
ansible_ssh_private_key_file="~/.ssh/id_rsa"
relayer1_ip="10.0.0.2"
relayer2_ip="10.0.0.3"
relayer3_ip="10.0.0.4"
relayer4_ip="10.0.0.5"

# You will add more
juno_ip="10.0.0.2"
kichain_ip="10.0.0.3"
sifchain_ip="10.0.0.4"
stargaze_ip="10.0.0.5"
63 changes: 63 additions & 0 deletions roles/hermes_config/templates/configs/gravity.toml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{% include 'fragments/header.toml.j2' %}


{% include 'fragments/gravity.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-0'], # Bitcanna
['transfer', 'channel-34'], # Chihuahua
['transfer', 'channel-8'], # Juno
['transfer', 'channel-10'], # Osmosis
['transfer', 'channel-7'], # Stargaze
['transfer', 'channel-28'], # Umee
]

{% include 'fragments/bitcanna.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-8'], # Gravity
]

{% include 'fragments/chihuahua.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-15'], # Gravity
]

{% include 'fragments/juno.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-31'], # Gravity
]

{% include 'fragments/osmosis.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-144'], # Gravity
]

{% include 'fragments/stargaze.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-6'], # Gravity
]

{% include 'fragments/umee.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-9'], # Gravity
]
22 changes: 11 additions & 11 deletions roles/hermes_config/templates/configs/injective.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,10 @@
[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-8'], # Osmosis
['transfer', 'channel-76'], # Chihuahua
['transfer', 'channel-83'], # Evmos
['transfer', 'channel-1'], # Cosmos
]

{% include 'fragments/osmosis.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-122'], # Injective
['transfer', 'channel-83'], # Evmos
['transfer', 'channel-8'], # Osmosis
]

{% include 'fragments/chihuahua.toml.j2' %}
Expand All @@ -42,4 +34,12 @@ list = [
policy = 'allow'
list = [
['transfer', 'channel-10'], # Injective
]
]

{% include 'fragments/osmosis.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-122'], # Injective
]
81 changes: 81 additions & 0 deletions roles/hermes_config/templates/configs/juno.toml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{% include 'fragments/header.toml.j2' %}


{% include 'fragments/juno.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-29'], # Akash
['transfer', 'channel-50'], # Bitcanna
['transfer', 'channel-28'], # Chihuahua
['transfer', 'channel-70'], # Evmos
['transfer', 'channel-58'], # Kichain
['transfer', 'channel-5'], # Sifchain
['transfer', 'channel-20'], # Stargaze
['transfer', 'channel-62'], # Umee
]

{% include 'fragments/akash.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-35'], # Juno
]

{% include 'fragments/bitcanna.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-10'], # Juno
]

{% include 'fragments/chihuahua.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-11'], # Juno
]

{% include 'fragments/evmos.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-5'], # Juno
]

{% include 'fragments/kichain.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-8'], # Juno
]

{% include 'fragments/sifchain.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-14'], # Juno
]

{% include 'fragments/stargaze.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-5'], # Juno
]

{% include 'fragments/umee.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-2'], # Juno
]
54 changes: 54 additions & 0 deletions roles/hermes_config/templates/configs/kujira.toml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{% include 'fragments/header.toml.j2' %}


{% include 'fragments/kujira.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-9'], # Axelar
['transfer', 'channel-1'], # Juno
['transfer', 'channel-0'], # Cosmos
['transfer', 'channel-23'], # Evmos
['transfer', 'channel-3'], # Osmosis
]

{% include 'fragments/axelar.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-14'], # kujira
]

{% include 'fragments/cosmos.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-343'], # Kujira
]

{% include 'fragments/evmos.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-18'], # Kujira
]

{% include 'fragments/juno.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-87'], # kujira
]

{% include 'fragments/osmosis.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-259'], # kujira
]
81 changes: 81 additions & 0 deletions roles/hermes_config/templates/configs/osmosis.toml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{% include 'fragments/header.toml.j2' %}


{% include 'fragments/osmosis.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-1'], # Akash
['transfer', 'channel-51'], # Bitcanna
['transfer', 'channel-113'], # Chihuahua
['transfer', 'channel-204'], # Evmos
['transfer', 'channel-77'], # Kichain
['transfer', 'channel-47'], # Sifchain
['transfer', 'channel-75'], # Stargaze
['transfer', 'channel-184'], # Umee
]

{% include 'fragments/akash.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-9'], # Osmosis
]

{% include 'fragments/bitcanna.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-1'], # Osmosis
]

{% include 'fragments/chihuahua.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-7'], # Osmosis
]

{% include 'fragments/evmos.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-0'], # Osmosis
]

{% include 'fragments/kichain.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-0'], # Osmosis
]

{% include 'fragments/sifchain.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-17'], # Osmosis
]

{% include 'fragments/stargaze.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-0'], # Osmosis
]

{% include 'fragments/umee.toml.j2' %}

[chains.packet_filter]
policy = 'allow'
list = [
['transfer', 'channel-0'], # Osmosis
]
Loading

0 comments on commit 58d038e

Please sign in to comment.