<commit_before>{% set psf_internal = salt["pillar.get"]("psf_internal_network") %}

# PostgreSQL Client Authentication Configuration File
# ===================================================
#

# TYPE  DATABASE        USER            ADDRESS                 METHOD

# Database administrative login by Unix domain socket
local   all             postgres                                peer

# Replication
hostssl replication     replicator      {{ psf_internal }}      cert

# bugs.python.org<commit_msg>Switch the replicator to single IP addresses<commit_after>{% set psf_internal = salt["pillar.get"]("psf_internal_network") %}

# PostgreSQL Client Authentication Configuration File
# ===================================================
#

# TYPE  DATABASE        USER            ADDRESS                 METHOD

# Database administrative login by Unix domain socket
local   all             postgres                                peer

# Replication
{% for server, addrs in salt["mine.get"]("roles:postgresql-replica", "minealiases.psf_internal", expr_form="grain").items() %}
{% for addr in addrs %}
hostssl replication     replicator      {{ addr }} 255.255.255.255 cert
{% endfor %}
{% endfor %}

# bugs.python.org
{'fraction_non_alphanumeric': 0.16735028712059064, 'fraction_numerical': 0.009844134536505332, 'mean_word_length': 2.8006230529595015, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4811631', 'n_tokens_mistral': 342, 'n_tokens_neox': 303, 'n_words': 83}