dn42-ansible/solanum/connect.j2

24 lines
718 B
Django/Jinja

{% for host in ansible_play_hosts %}
{% if host != inventory_hostname %}
connect "{{ host }}" {
host = "{{ hostvars[host]['unicastv6'] }}";
send_password = "certfp";
accept_password = "certfp";
port = 6697;
class = "server";
flags = topicburst, ssl, autoconn;
fingerprint = "{{ hostvars[host]['tls_fingerprint']['stdout'] }}";
};
{% endif %}
{% endfor %}
{% if inventory_hostname == 'us1.routers.9pfs.dn42' %}
connect "irc.firepi.amcforum.wiki" {
host = "fd13:af89:f9::1";
send_password = "certfp";
accept_password = "certfp";
port = 6697;
class = "server";
flags = topicburst, ssl, autoconn;
fingerprint = "SPKI:SHA2-256:0f9bab78b6e6eda24e2c8ff590b826b560fc88ed722233084616c050c8c32c5c";
};
{% endif %}