aboutsummaryrefslogtreecommitdiffstats
path: root/modules/xinetd/manifests/port_forward.pp
blob: 23d00f0382499cb0a9f17c62e5cf7eb1bb101923 (plain)
1
2
3
4
5
6
7
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']
    }
}