-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
code refactor, add kava support, set user as variable instead of hard…
…-coding to ubuntu
- Loading branch information
Showing
27 changed files
with
295 additions
and
312 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
# node_exporter | ||
node_exporter_version: '1.2.2' | ||
node_exporter_checksum: '344bd4c0bbd66ff78f14486ec48b89c248139cdd485e992583ea30e89e0e5390' | ||
|
||
# promtail | ||
promtail_version: '2.4.1' | ||
promtail_checksum: 978391a174e71cfef444ab9dc012f95d5d7eae0d682eaf1da2ea18f793452031 | ||
|
||
# go | ||
go_version: '1.17.1' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
validator_name: polkachu-juno-mainnet | ||
log_name: juno_mainnet | ||
network: juno | ||
folder: '.juno' | ||
daemon: junod | ||
chain_id: juno-1 | ||
node_version: v1.0.0 | ||
genesis: 'https://raw.githubusercontent.com/CosmosContracts/mainnet/main/juno-1/genesis.json' | ||
repo: https://github.com/CosmosContracts/juno | ||
minimum_has_price: '0.025ujuno' | ||
genesis: 'https://raw.githubusercontent.com/CosmosContracts/mainnet/main/juno-1/genesis.json' | ||
peers: 'c12726cfc959b54c90c0831216bab970645b536c@18.223.79.98:26656,b1f46f1a1955fc773d3b73180179b0e0a07adce1@162.55.244.250:39656,7f593757c0cde8972ce929381d8ac8e446837811@178.18.255.244:26656,7b22dfc605989d66b89d2dfe118d799ea5abc2f0@167.99.210.65:26656,4bd9cac019775047d27f9b9cea66b25270ab497d@137.184.7.164:26656,bd822a8057902fbc80fd9135e335f0dfefa32342@65.21.202.159:38656,15827c6c13f919e4d9c11bcca23dff4e3e79b1b8@51.38.52.210:38656,e665df28999b2b7b40cff2fe4030682c380bf294@188.40.106.109:38656,92804ce50c85ff4c7cf149d347dd880fc3735bf4@34.94.231.154:26656,795ed214b8354e8468f46d1bbbf6e128a88fe3bd@34.127.19.222:26656,ea9c1ac0e91639b2c7957d9604655e2263abe4e1@185.181.103.136:26656' | ||
minimum_has_price: '0.025ujuno' |
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,11 +1,9 @@ | ||
validator_name: polkachu-juno-testnet | ||
log_name: juno_testnet | ||
network: juno | ||
folder: '.juno' | ||
daemon: junod | ||
chain_id: uni | ||
node_version: v1.0.0 | ||
genesis: 'https://raw.githubusercontent.com/CosmosContracts/testnets/main/uni/genesis.json' | ||
repo: https://github.com/CosmosContracts/juno | ||
minimum_has_price: '0.025ujunox' | ||
genesis: 'https://raw.githubusercontent.com/CosmosContracts/testnets/main/uni/genesis.json' | ||
peers: 'b2ef97b03c049c39a975b7845abe40fb3e48ee36@216.238.71.243:26656,34e9b3698c0a0fc7e5a8c16dc63b4d913c496c2d@206.189.151.85:26656,7ff7fd0119b104f659810ece82e9cefe2819bb33@128.199.97.8:26656,a1d3e3e6615f8eded91b012c69edb6b1bb0f5e42@161.97.187.234:26656,cdfdd1735bad77c49290e9485b8eb49fbd61ca4d@178.128.36.63:26656,4a91597dfe3ec715bbf6def225066fbb6ad86cfe@207.180.204.112:36656,15bbe91a29693284c4c13138550ea0b6a34f9c42@137.184.11.214:26656,b5377aa9885c69e154820d19be6c87c3d3c34d14@65.108.85.61:26656' | ||
minimum_gas_price: '0.025ujunox' |
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,10 @@ | ||
network: kava | ||
folder: '.kvd' | ||
daemon: kvd | ||
chain_id: kava-8 | ||
node_version: v0.15.1 | ||
repo: https://github.com/kava-labs/kava | ||
genesis: 'https://kava-genesis-files.s3.amazonaws.com/kava-8-genesis-migrated-from-block-1878508.json' | ||
peers: '12ce13dc36f142f0148dfdd126fbc269a6f30a16@34.200.56.118:26656,bf06dc58fe2b63eaa9ebb3a10518c57459248ed4@54.80.39.137:26656,3805abc1198b970f240948cfe78d0162fab87c5d@44.198.20.70:26656,5870640558f4c6b4d4c9fe98848a63a84ade1991@18.232.243.20:26656,11f965df6fb3091e0fa3a1e4c129ff697939b827@54.185.38.14:26656,00367117989dce8ce84fd22a1967680b604eef66@13.56.154.100:26656,e3ce1ea109ce541e7e45e448f200f5fc6c0b1b4d@54.219.33.62:26656,f4391903ae4d8300e22103358a205237fba108c4@13.209.173.243:26656,c6d5a2c7f321bb8abf52a342d52195089c0b4e61@3.141.176.20:26656,9b278bbf2c0308eb2a4a4f72e6d0d63cb19ad11d@141.94.101.216:26656,bd6d7005a588277b4306abc67c6605586971cd67@116.202.82.201:50056,7b9e23a50afe59382affe474ecfdba2aad5757f1@34.66.96.15:26656,e0768d1b55c5b1390bc78f8976415381d0ac4da5@34.82.232.135:26656,d3658cb9c63cf43b0c707401649809a6007a7c12@94.130.67.43:26656,4f4b567edcc417ff5ff21d26fb56237e60da81b3@132.145.126.161:26656,508d7ec33c7f3c9c479ca9b845cadbbefee670f7@95.216.16.245:21656,13a9ca027c84938525bbd042b78c64d08864e6b9@136.244.95.119:26656,bcb2f02c7fd6c649ac45c8f2a87482310ebe1ae5@45.76.90.130:26656,1074a6f31d2c7df6e21ce0e574a5cb75f1763be1@13.56.31.21:26656,1291ef230910953545fb3d83c4e989578da978a1@35.157.56.248:26656,ad62204afa2a3e13163f83d87e9b1e7a2ca2b789@213.159.16.48:26656' | ||
minimum_gas_price: '0.001ukava' | ||
seeds: '2c11fb480bb842e2fc181ab57c11baba0131dca3@44.196.226.19:26656' |
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,9 +1,8 @@ | ||
validator_name: polkachu-sifchain-betanet | ||
log_name: sifchain_betanet | ||
network: sifnoded | ||
folder: '.sifnoded' | ||
daemon: sifnoded | ||
chain_id: sifchain-1 | ||
node_version: master | ||
genesis: 'https://raw.githubusercontent.com/Sifchain/networks/master/betanet/sifchain-1/genesis.json.gz' | ||
repo: https://github.com/Sifchain/sifnode.git | ||
genesis: 'https://raw.githubusercontent.com/Sifchain/networks/master/betanet/sifchain-1/genesis.json.gz' | ||
peers: '0d4981bdaf4d5d73bad00af3b1fa9d699e4d3bc0@44.235.108.41:26656,bcc2d07a14a8a0b3aa202e9ac106dec0bef91fda@13.55.247.60:26656,663dec65b754aceef5fcccb864048305208e7eb2@34.248.110.88:26656,0120f0a48e7e81cc98829ef4f5b39480f11ecd5a@52.76.185.17:26656,6535497f0152293d773108774a705b86c2249a9c@44.238.121.65:26656,fdf5cffc2b20a20fab954d3b6785e9c382762d14@34.255.133.248:26656,8c240f71f9e060277ce18dc09d82d3bbb05d1972@13.211.43.177:26656,9fbcb6bd5a7f20a716564157c4f6296d2faf5f64@18.138.208.95:26656' |
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,7 +1,8 @@ | ||
validator_name: polkachu-sifchain-testnet | ||
log_name: sifchain_testnet | ||
|
||
chain_type: testnet | ||
network: sifnoded | ||
folder: '.sifnoded' | ||
daemon: sifnoded | ||
chain_id: sifchain-testnet-1 | ||
node_version: testnet-0.9.0 | ||
repo: https://github.com/Sifchain/sifnode.git | ||
genesis: 'https://raw.githubusercontent.com/Sifchain/networks/master/testnet/sifchain-testnet-1/genesis.json.gz' | ||
peers: 'b4caebe07ab25126e4e6053bf955833198f18ed0@54.216.30.38:26656,b6f113a30e7019b034e8b31cd2541aebebaacb60@54.66.212.111:26656,ffcc2fab592d512eca7f903fd494d85a93e19cfe@122.248.219.121:26656,a2864737f01d3977211e2ea624dd348595dd4f73@3.222.8.87:26656' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
- name: Prepare | ||
hosts: '{{ target }}' | ||
become: true | ||
gather_facts: false | ||
roles: | ||
- prepare | ||
|
||
- name: Install node | ||
hosts: '{{ target }}' | ||
gather_facts: false | ||
roles: | ||
- standard_node_installation | ||
- initialize_kava | ||
- launch_node |
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,32 @@ | ||
--- | ||
- name: Initialize Node | ||
command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' | ||
environment: | ||
PATH: '{{ path }}' | ||
|
||
- name: Update minimum gas price on config file | ||
lineinfile: | ||
path: '/home/{{ ansible_user }}/{{ folder }}/config/app.toml' | ||
regexp: 'minimum-gas-prices ' | ||
line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' | ||
state: present | ||
|
||
- name: Update the config.toml file | ||
lineinfile: | ||
path: '/home/{{ ansible_user }}/{{ folder }}/config/config.toml' | ||
regexp: 'persistent_peers = ""' | ||
line: 'persistent_peers = "{{ peers }}"' | ||
state: present | ||
|
||
- name: Download genesis file | ||
get_url: | ||
url: '{{ genesis }}' | ||
dest: '/home/{{ ansible_user }}/{{ folder }}/config/genesis.json' | ||
mode: '0644' | ||
|
||
- name: Enable prometheus on the config.toml file | ||
lineinfile: | ||
path: '/home/{{ ansible_user }}/{{ folder }}/config/config.toml' | ||
regexp: 'prometheus = false' | ||
line: 'prometheus = true' | ||
state: present |
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,33 @@ | ||
--- | ||
- name: Initialize Node | ||
command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' | ||
environment: | ||
PATH: '{{ path }}' | ||
|
||
- name: Update app.toml file | ||
lineinfile: | ||
path: '/home/{{ ansible_user }}/{{ folder }}/config/app.toml' | ||
regexp: 'minimum-gas-prices ' | ||
line: 'minimum-gas-prices = "{{ minimum_gas_price }}"' | ||
state: present | ||
|
||
- name: Update persistent peers on the config.toml file | ||
lineinfile: | ||
path: '/home/{{ ansible_user }}/{{ folder }}/config/config.toml' | ||
regexp: 'persistent_peers = ""' | ||
line: 'persistent_peers = "{{ peers }}"' | ||
state: present | ||
|
||
- name: Update seeds on the config.toml file | ||
lineinfile: | ||
path: '/home/{{ ansible_user }}/{{ folder }}/config/config.toml' | ||
regexp: 'seeds = ""' | ||
line: 'seeds = "{{ seeds }}"' | ||
state: present | ||
|
||
- name: Download genesis file | ||
get_url: | ||
url: '{{ genesis }}' | ||
dest: '/home/{{ ansible_user }}/{{ folder }}/config/genesis.json' | ||
mode: '0644' | ||
force: true |
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,27 @@ | ||
--- | ||
- name: Initialize Node | ||
command: '{{ daemon }} init {{ validator_name }} --chain-id {{ chain_id }} -o' | ||
environment: | ||
PATH: '{{ path }}' | ||
|
||
- name: Update the config.toml file | ||
lineinfile: | ||
path: '/home/{{ ansible_user }}/.{{ network }}/config/config.toml' | ||
regexp: 'persistent_peers = ""' | ||
line: 'persistent_peers = "{{ peers }}"' | ||
state: present | ||
|
||
- name: Download genesis file | ||
get_url: | ||
url: '{{ genesis }}' | ||
dest: '/tmp/genesis.json.gz' | ||
mode: '0700' | ||
|
||
- name: unarchive genesis file | ||
shell: 'gunzip /tmp/genesis.json.gz -f' | ||
|
||
- name: copy the genesis file | ||
copy: | ||
remote_src: true | ||
src: /tmp/genesis.json | ||
dest: /home/{{ ansible_user }}/.sifnoded/config |
Oops, something went wrong.