-
Notifications
You must be signed in to change notification settings - Fork 104
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
validator_name: polkachu-evmos-testnet | ||
log_name: evmos_testnet | ||
network: evmos | ||
folder: '.evmosd' | ||
daemon: evmosd | ||
|
@@ -9,16 +7,4 @@ genesis: 'https://raw.githubusercontent.com/CosmosContracts/testnets/main/uni/ge | |
repo: https://github.com/CosmosContracts/juno | ||
minimum_has_price: '0.025ujunox' | ||
peers: '[email protected]:26656,[email protected]:26726,[email protected]:26658,[email protected]:26626,[email protected]:26666,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:46656,[email protected]:26656,[email protected]:24656,[email protected]:26656' | ||
seed: 'c36cec90ded95d162b85f8ecd00ecd7c8849ca75@arsiamons.seed.evmos.org:26656,3787335176bbb91bf14a67724ebe0f0940ca5afb@evmos-seed.artifact-staking.io:26656,faa31510d9280e74e7f2e767a62023bd5c896c27@evmos-testnet.mercury-nodes.net:29447' | ||
# evmosd tx staking create-validator \ | ||
# --amount=1000000000000aphoton \ | ||
# --pubkey=$(evmosd tendermint show-validator) \ | ||
# --moniker="polkachu-evomos-testnet" \ | ||
# --chain-id= evmos_9000-2 \ | ||
# --commission-rate="0.10" \ | ||
# --commission-max-rate="0.20" \ | ||
# --commission-max-change-rate="0.01" \ | ||
# --min-self-delegation="1000000" \ | ||
# --gas="auto" \ | ||
# --gas-prices="0.025aphoton" \ | ||
# --from=polkachu | ||
seeds: 'c36cec90ded95d162b85f8ecd00ecd7c8849ca75@arsiamons.seed.evmos.org:26656,3787335176bbb91bf14a67724ebe0f0940ca5afb@evmos-seed.artifact-staking.io:26656,faa31510d9280e74e7f2e767a62023bd5c896c27@evmos-testnet.mercury-nodes.net:29447' |
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: '[email protected]:26656,[email protected]:39656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:38656,[email protected]:38656,[email protected]:38656,[email protected]:26656,[email protected]:26656,[email protected]: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: '[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:36656,[email protected]:26656,[email protected]: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: '[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:50056,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:21656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656' | ||
minimum_gas_price: '0.001ukava' | ||
seeds: '[email protected]: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: '[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]: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: '[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]: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.