Skip to content

Commit

Permalink
finish hermes/rly installation playbooks
Browse files Browse the repository at this point in the history
  • Loading branch information
PolkachuIntern committed Sep 14, 2022
1 parent 32b261d commit 48504c3
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ansible.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[defaults]
inventory=inventory.ini
5 changes: 5 additions & 0 deletions group_vars/all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# hermes
hermes_version: '1.0.0'

# rly
rly_version: '2.0.0'
11 changes: 11 additions & 0 deletions inventory.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[relayer]
10.0.0.1

[all:vars]
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"
7 changes: 7 additions & 0 deletions main_hermes_install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: Main
hosts: 'relayer'
gather_facts: false
become: true
roles:
- hermes_install
7 changes: 7 additions & 0 deletions main_rly_install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: Main
hosts: 'relayer'
gather_facts: false
become: true
roles:
- rly_install
21 changes: 21 additions & 0 deletions roles/hermes_install/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
- name: download hermes
get_url:
url: 'https://github.com/informalsystems/ibc-rs/releases/download/v1.0.0/hermes-v{{ hermes_version }}-x86_64-unknown-linux-gnu.tar.gz'
dest: '/tmp/hermes.tar.gz'
mode: '0700'

- name: unarchive hermes
unarchive:
src: '/tmp/hermes.tar.gz'
remote_src: yes
dest: '/tmp'

- name: copy hermes binary
copy:
src: '/tmp/hermes'
dest: '/usr/local/bin/'
remote_src: true
owner: root
group: root
mode: 755
21 changes: 21 additions & 0 deletions roles/rly_install/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
- name: download rly
get_url:
url: 'https://github.com/cosmos/relayer/releases/download/v{{ rly_version }}/Cosmos.Relayer_{{ rly_version }}_linux_amd64.tar.gz'
dest: '/tmp/rly.tar.gz'
mode: '0700'

- name: unarchive rly
unarchive:
src: '/tmp/rly.tar.gz'
remote_src: yes
dest: '/tmp'

- name: copy rly binary
copy:
src: "/tmp/Cosmos\ Relayer"
dest: '/usr/local/bin/rly'
remote_src: true
owner: root
group: root
mode: 755

0 comments on commit 48504c3

Please sign in to comment.