Closed bebosudo closed 6 years ago
Fixed on #244
False
for the Jinja block trimming/stripping environment variables: # TYPE DATABASE USER ADDRESS METHOD
+
+
local all all peer
+
host all all 127.0.0.1/32 md5
+
host all all ::1/128 md5
+
local replication all peer
+
host replication all 127.0.0.1/32 md5
+
host replication all ::1/128 md5
pg_hba.conf
files.Of course, the situation resolved by #244 is critical; but this side effect is an annoyance. Is there any way (similar to config.get
) to check for these Jinja values and apply the fix for either setting?
CC: @vutny.
Hi, I'm using this formula, along with the following lines in my salt master configuration:
to strip empty lines in my salt states. This causes the following
pg_hba.conf
file:Which is caused by lines https://github.com/saltstack-formulas/postgres-formula/blob/87f6cd880ca637984268e3bbe4ef7078f47ced08/postgres/templates/pg_hba.conf.j2#L39 and L23. Do you think a pull request to remove the line strip in jinja could be feasible?