diff options
author | Dan Fandrich <danf@mageia.org> | 2024-11-20 15:36:06 -0800 |
---|---|---|
committer | Dan Fandrich <danf@mageia.org> | 2024-11-20 15:36:06 -0800 |
commit | 727145ed50d60655590c0199656c2378d32bfffc (patch) | |
tree | 3a95f1ba2f64656879be8c857470155c7bde398d /modules/xinetd/templates/port_forward | |
parent | 7766681f7ef95a3ad7e6c7c1a26f829ec02d776b (diff) | |
download | puppet-727145ed50d60655590c0199656c2378d32bfffc.tar puppet-727145ed50d60655590c0199656c2378d32bfffc.tar.gz puppet-727145ed50d60655590c0199656c2378d32bfffc.tar.bz2 puppet-727145ed50d60655590c0199656c2378d32bfffc.tar.xz puppet-727145ed50d60655590c0199656c2378d32bfffc.zip |
Use @ when accessing variables in templates
Access without the @ symbol is the older method and is discouraged.
This take leaves alone accesses of variables that are defined within the
template, which don't seem to allow an @.
This is the second batch of files.
Diffstat (limited to 'modules/xinetd/templates/port_forward')
-rw-r--r-- | modules/xinetd/templates/port_forward | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/xinetd/templates/port_forward b/modules/xinetd/templates/port_forward index 1b76b0e1..99518dcd 100644 --- a/modules/xinetd/templates/port_forward +++ b/modules/xinetd/templates/port_forward @@ -1,15 +1,15 @@ -service <%= name %> +service <%= @name %> { disable = no type = UNLISTED -<%- if proto == 'tcp' -%> +<%- if @proto == 'tcp' -%> socket_type = stream <%- 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 %> } |