aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql/templates
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2024-10-04 19:28:06 -0700
committerDan Fandrich <danf@mageia.org>2024-10-04 19:28:06 -0700
commit2c7da66570999dcd21f11f976dc6ec27d820f45c (patch)
treeb97dd9f25df691c66b2be31b658cc6fec638d47e /modules/postgresql/templates
parenta69863ece1973cf3eae488f30c657b57dfb89779 (diff)
downloadpuppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.tar
puppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.tar.gz
puppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.tar.bz2
puppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.tar.xz
puppet-2c7da66570999dcd21f11f976dc6ec27d820f45c.zip
Use @ when accessing variables in templates
Access without the @ symbol is the older method and is discouraged.
Diffstat (limited to 'modules/postgresql/templates')
-rw-r--r--modules/postgresql/templates/pg_hba.conf20
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/postgresql/templates/pg_hba.conf b/modules/postgresql/templates/pg_hba.conf
index e4232a4e..a1da9c10 100644
--- a/modules/postgresql/templates/pg_hba.conf
+++ b/modules/postgresql/templates/pg_hba.conf
@@ -79,7 +79,7 @@
<%-
for line in @conf_lines
-%>
-<%= line %>
+<%= @line %>
<%-
end
-%>
@@ -92,10 +92,10 @@
# fetch it
for i in db
%>
-host <%= i %> <%= i %> 127.0.0.1/32 md5
-host <%= i %> <%= i %> ::1/128 md5
-hostssl <%= i %> <%= i %> <%= ipaddress %>/32 md5
-hostssl <%= i %> <%= i %> 2a02:2178:2:7::2/128 md5
+host <%= @i %> <%= @i %> 127.0.0.1/32 md5
+host <%= @i %> <%= @i %> ::1/128 md5
+hostssl <%= @i %> <%= @i %> <%= @ipaddress %>/32 md5
+hostssl <%= @i %> <%= @i %> 2a02:2178:2:7::2/128 md5
<%
end
%>
@@ -104,12 +104,12 @@ end
lang = ['en','de']
for l in lang
%>
-host phpbb_<%= l %> phpbb 127.0.0.1/32 md5
-host phpbb_<%= l %> phpbb ::1/128 md5
-hostssl phpbb_<%= l %> phpbb <%= ipaddress %>/32 md5
-hostssl phpbb_<%= l %> phpbb 2a02:2178:2:7::2/128 md5
+host phpbb_<%= @l %> phpbb 127.0.0.1/32 md5
+host phpbb_<%= @l %> phpbb ::1/128 md5
+hostssl phpbb_<%= @l %> phpbb <%= @ipaddress %>/32 md5
+hostssl phpbb_<%= @l %> phpbb 2a02:2178:2:7::2/128 md5
# temporary, for the forum on friteuse vm
-hostssl phpbb_<%= l %> phpbb 192.168.122.0/24 md5
+hostssl phpbb_<%= @l %> phpbb 192.168.122.0/24 md5
<%
end
%>