aboutsummaryrefslogtreecommitdiffstats
path: root/modules/xinetd
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/xinetd
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/xinetd')
-rw-r--r--modules/xinetd/templates/port_forward8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/xinetd/templates/port_forward b/modules/xinetd/templates/port_forward
index 1b76b0e1..7138dba2 100644
--- a/modules/xinetd/templates/port_forward
+++ b/modules/xinetd/templates/port_forward
@@ -1,4 +1,4 @@
-service <%= name %>
+service <%= @name %>
{
disable = no
type = UNLISTED
@@ -7,9 +7,9 @@ service <%= name %>
<%- else -%>
socket_type = dgram
<%- end -%>
- protocol = <%= proto %>
+ protocol = <%= @proto %>
user = nobody
wait = no
- redirect = <%= target_ip %> <%= target_port %>
- port = <%= port %>
+ redirect = <%= @target_ip %> <%= @target_port %>
+ port = <%= @port %>
}