Change private IP to public IP used.

This commit is contained in:
ArseniiPetrovich 2018-12-11 18:17:15 +03:00
parent cb35692e1a
commit 95154a0c6e
8 changed files with 20 additions and 4 deletions

View File

@ -1,5 +1,9 @@
---
- name: Get public IP
ipify_facts:
register: public_ip
- name: Create node.toml
template: src=node.toml.j2 dest={{ home }}/node.toml owner={{ username }} group={{ username }} mode=0644

View File

@ -7,7 +7,7 @@ auto_update = "all"
[network]
reserved_peers="{{ home }}/bootnodes.txt"
nat="extip:{{ ansible_host }}"
nat="extip:{{ public_ip }}"
port = 30303
max_peers = 100
snapshot_peers = 25

View File

@ -1,5 +1,9 @@
---
- name: Get public IP
ipify_facts:
register: public_ip
- name: Create node.toml
template: src=node.toml.j2 dest={{ home }}/node.toml owner={{ username }} group={{ username }} mode=0644

View File

@ -4,7 +4,7 @@ base_path = "parity_data"
[network]
reserved_peers="{{ home }}/bootnodes.txt"
nat="extip:{{ ansible_host }}"
nat="extip:{{ public_ip }}"
port = 30303
[footprint]

View File

@ -1,5 +1,9 @@
---
- name: Get public IP
ipify_facts:
register: public_ip
- name: Create node.toml
template: src=node.toml.j2 dest={{ home }}/node.toml owner={{ username }} group={{ username }} mode=0644

View File

@ -7,7 +7,7 @@ auto_update = "all"
[network]
reserved_peers="{{ home }}/bootnodes.txt"
nat="extip:{{ ansible_host }}"
nat="extip:{{ public_ip }}"
port = 30303
{% if moc_archive|default("off") == "on" %}
snapshot_peers = 500

View File

@ -1,5 +1,9 @@
---
- name: Get public IP
ipify_facts:
register: public_ip
- name: Create node.toml
template: src=node.toml.j2 dest={{ home }}/node.toml owner={{ username }} group={{ username }} mode=0644

View File

@ -7,7 +7,7 @@ auto_update = "all"
[network]
reserved_peers="{{ home }}/bootnodes.txt"
nat="extip:{{ ansible_host }}"
nat="extip:{{ public_ip }}"
port = 30303
{% if validator_archive|default("off") == "on" %}
discovery = false