w3f / polkadot-validator-setup

Polkadot Validator Secure Setup
Apache License 2.0
217 stars 130 forks source link

[WIP] Cleanup j2 templating, expand sample inventory with additional parameters #137

Closed lamafab closed 3 years ago

lamafab commented 3 years ago
# Validator 0
[validator_0]
147.75.76.65

# NOTE: optional variables can just be removed.
[validator_0:vars]
ansible_user=alice
# Set an individual node name (optional)
node_name='Alice Validator'
# Setup telemetry endpoint (optional)
telemetry_url=wss://telemetry.polkadot.io/submit/
# Only log specify levels, e.g. warnings (optional)
logging_filter='sync=warn,afg=warn,babe=warn'
# Location for database, keys, etc (optional)
base_path='/mnt/volume'
# Setup a nginx reverse proxy in front of the binary (optional). Disabled by default.
enable_reverse_proxy = false
# Any additional flags passed on to the 'polkadot' binary (optional)
additional_flags = '--no-prometheus --no-mdns'

It's basically done, but need to discuss snake_case vs camelCase. I think for yaml camelCase is better, but we already have everything defined in snake_case which and would therefore break backwards compatibility with existing inventories. I will probably convert everything to snake_case.

lamafab commented 3 years ago

FYI: Tested this on my production Polkadot and Kusama nodes (both snake_case and camelCase conventions), including my test node.