You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
636 B

{
"genesis_time":"{{ansible_date_time.iso8601}}",
"chain_id":"{{testnet_name}}",
"validators":
[
{% if (validators == true) or (validators == 'true') %}
{% set comma = joiner(",") %}
{% for host in (groups[testnet_name]|default([]))+(groups['tag_Environment_'~(testnet_name|regex_replace('-','_'))]|default([])) %}
{{ comma() }}
{
"pub_key": {
"data": "{{hostvars[host]["pubkey"]["data"]}}",
"type": "{{hostvars[host]["pubkey"]["type"]}}"
},
"power":10,
"name":"{{hostvars[host]["inventory_hostname"]}}"
}
{% endfor %}
{% endif %}
],
"app_hash":"",
"app_options": {}
}