Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
PolkachuIntern committed Sep 8, 2022
1 parent 5c1651c commit be8f74c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,5 @@ Because this repo tries to accommodate as many Tendermint-based chains as possib
| Axelar | Some extra lines at the end of app.toml | Delete extra lines and adjust some settings these extra lines are supposed to change |
| Canto | genesis file needs to be unwrapped from .result.genesis | Unwrap genesis with jq command |
| Injective | Some extra lines at the end of app.toml | Delete extra lines and adjust some settings these extra lines are supposed to change |
| Kichain | Some extra lines at the end of app.toml | Delete extra lines and adjust some settings these extra lines are supposed to change |
| Celestia testnet | inconsistent config.toml file variable naming convention | Manually adjust config.toml file |
8 changes: 4 additions & 4 deletions roles/node_initialize/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
when: genesis_processing is defined and genesis_processing == "targz"

- name: Set chain_id
command: "{{ user_dir }}/go/bin/{{ daemon }} config chain-id {{ chain_id }}"
ignore_errors: yes
command: '{{ user_dir }}/go/bin/{{ daemon }} config chain-id {{ chain_id }}'
ignore_errors: true

- name: Set local node
command: "{{ user_dir }}/go/bin/{{ daemon }} config node tcp://localhost:{{ custom_port_prefix }}57"
ignore_errors: yes
command: '{{ user_dir }}/go/bin/{{ daemon }} config node tcp://localhost:{{ custom_port_prefix }}57'
ignore_errors: true
16 changes: 16 additions & 0 deletions roles/support_config_update/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
---
- name: register public ip
uri:
url: 'https://api.ipify.org?format=json'
register: public_ip

- name: Set up external address
lineinfile:
path: '{{ user_dir }}/{{ folder }}/config/config.toml'
regexp: 'external_address = "'
line: 'external_address = "{{ public_ip.json.ip }}:{{ custom_port_prefix }}56"'
state: present

- name: Adjust config.toml port
lineinfile:
path: '{{ user_dir }}/{{ folder }}/config/config.toml'
Expand Down Expand Up @@ -28,6 +40,10 @@
become: true
command: 'ufw allow {{ custom_port_prefix }}56/tcp'

- name: Set local node
command: '{{ user_dir }}/go/bin/{{ daemon }} config node tcp://localhost:{{ custom_port_prefix }}57'
ignore_errors: true

- name: start cosmovisor service
become: true
systemd:
Expand Down

0 comments on commit be8f74c

Please sign in to comment.