aboutsummaryrefslogtreecommitdiffstats
path: root/modules/xinetd/manifests/init.pp
blob: 8521c6fc3077ac1b3a4d7a94d218b69282a2733c (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']
        }
    }
}