Giter Club home page Giter Club logo

cosmos-validators's People

Contributors

chomtana avatar daxterotter avatar dylanschultzie avatar husonghua avatar justteam avatar nodeiistt avatar nodeshub avatar polkachuintern avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cosmos-validators's Issues

Feature request: make firewall optional

The firewall-related tasks assume the user is running the node on a publicly exposed machine. Some users may use a top-of-rack firewall or other solution and not wish to have UFW installed on the specific machine hosting the node. I understand that supporting alternative firewall solutions is probably out of scope for this project, but UFW should at the very least be opt out for users with special setups.

Move task level variable

Hello, Thanks for amazing contribution to #web3.

We can improve from old,new to key:value based

From

- name: Adjust config.toml port when needed
lineinfile:
path: '{{ user_dir }}/{{ folder }}/config/config.toml'
regexp: '{{ item.old }}'
line: '{{ item.new }}'
loop:
- {
old: 'laddr = "tcp://0.0.0.0:26656"',
new: 'laddr = "tcp://0.0.0.0:{{ custom_port_prefix }}656"',
}
- {
old: 'laddr = "tcp://127.0.0.1:26657"',
new: 'laddr = "tcp://127.0.0.1:{{ custom_port_prefix }}657"',
}
- {
old: 'proxy_app = "tcp://127.0.0.1:26658"',
new: 'proxy_app = "tcp://127.0.0.1:{{ custom_port_prefix }}658"',
}
- {
old: 'prometheus_listen_addr = ":26660"',
new: 'prometheus_listen_addr = ":{{ custom_port_prefix }}660"',
}
- {
old: 'pprof_laddr = "localhost:6060"',
new: 'pprof_laddr = "localhost:{{ custom_port_prefix }}060"',
}

To

vars:
  config_changes:
    'laddr = "tcp://0.0.0.0:26656"': 'laddr = "tcp://0.0.0.0:{{ custom_port_prefix }}656"'

...

- name: Adjust config.toml port when needed
  lineinfile:
    path: '{{ user_dir }}/{{ folder }}/config/config.toml'
    regexp: '{{ item.key }}'
    line: '{{ item.value }}'

License ?

Hello,

What is the license of this project ?

Regards

Sample inventory lends itself to bug

The following lines in inventory.sample if followed too closely will cause bugs when running the main playbook:

[mainnets]
mainnet1 ansible_host=10.0.0.1

Specifically, since a folder in group_vars is named mainnets if an end user (me in this case) creates a group named mainnets like in the sample, all the files in that group_vars/mainnets folder will be applied, causing unexpected behavior.

chihuahua testnet url 404s

TASK [node_initialize : regular genesis download] ***************************************************************************************************************
fatal: [chihuahua]: FAILED! => {"changed": false, "dest": "/home/ubuntu/.chihuahuad/config/genesis.json", "elapsed": 0, "gid": 1000, "group": "ubuntu", "mode": "0644", "msg": "Request failed", "owner": "ubuntu", "response": "HTTP Error 404: Not Found", "size": 5245, "state": "file", "status_code": 404, "uid": 1000, "url": "https://raw.githubusercontent.com/polkachu/validator-guide/main/testnet-genesis/chihuahua/chitestnet-6/genesis.json"}

Thanks for this awesome resource btw ๐Ÿ™

fix: run ufw commands only if prepare is true in node_launch role

Run ufw command only if prepare is true in node_launch role.

ignore_errors: (prepare is defined) and (prepare|bool is false)

So

Old

- name: open prometheus port
become: true
command: 'ufw allow {{ custom_port_prefix }}660/tcp'
- name: open p2p port
become: true
command: 'ufw allow {{ custom_port_prefix }}656/tcp'

New

 - name: open prometheus port 
   become: true 
   command: 'ufw allow {{ custom_port_prefix }}660/tcp'
   ignore_errors: (prepare is defined) and (prepare|bool is false)

 - name: open p2p port 
   become: true 
   command: 'ufw allow {{ custom_port_prefix }}656/tcp'
   ignore_errors: (prepare is defined) and (prepare|bool is false)

cosmovisor environment variables

If this ansible is meant for a validator, it is best practice to keef the default "false" value for binary download. it is considered a possible security vulnerability and should only be used on nodes.

So, at the very least, it should be made a variable for the ansible that needs to be set by the user and is default "false"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.