poanetwork / poa-devops

POA Network DevOps scripts
GNU General Public License v3.0
11 stars 19 forks source link

Update main.yml #3

Closed igorbarinov closed 6 years ago

igorbarinov commented 6 years ago

I'm not sure is it a good solution or not. But it worked for me on explorer node

Also, it's not convenient to update multiple roles... you script should support enumeration of nodes and IP

phahulin commented 6 years ago

First part is addressed here https://github.com/poanetwork/poa-devops/pull/4 (checking that netstats service file exists)

Second part needs some more time to investigate.

phahulin commented 6 years ago

Turned out to be rather straightforward: you can add multiple ips under [hf-spec-change] section and explicitly set their roles if needed:

[hf-spec-change]
192.0.2.1 poa_role=explorer
192.0.2.2
192.0.2.3 poa_role=moc
192.0.2.4

when poa_role is not set explicitly, value from group_vars/all is used as default.

phahulin commented 6 years ago

Added a note in documentation.