aboutsummaryrefslogtreecommitdiffstats
path: root/modules/xinetd/manifests/init.pp
blob: 1865df91fe9f611049f92489b9f77247ae73e624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class xinetd {
    package { 'xinetd': }

    service { 'xinetd':
        subscribe => Package['xinetd']
    }

    define service($content) {
        include xinetd
        file { "/etc/xinetd.d/$name":
            require => Package['xinetd'],
            content => $content,
            notify  => Service['xinetd']
        }
    }
}