diff options
Diffstat (limited to 'modules/xinetd/manifests')
-rw-r--r-- | modules/xinetd/manifests/port_forward.pp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/xinetd/manifests/port_forward.pp b/modules/xinetd/manifests/port_forward.pp new file mode 100644 index 00000000..23d00f03 --- /dev/null +++ b/modules/xinetd/manifests/port_forward.pp @@ -0,0 +1,8 @@ +define xinetd::port_forward($target_ip, $target_port, $port, $proto = 'tcp') { + include xinetd + file { "/etc/xinetd.d/$name": + require => Package['xinetd'], + content => template('xinetd/port_forward'), + notify => Service['xinetd'] + } +} |