aboutsummaryrefslogtreecommitdiffstats
path: root/modules/xinetd/manifests/init.pp
blob: 1915c9db4fa47c1d91436ca72d57a423521fab0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class xinetd {
    package { "xinetd":
        ensure => installed 
    }

    service { xinetd:
        ensure => running,
        path => "/etc/init.d/xinetd",
        subscribe => [ Package["xinetd"] ]
    }
   
    define service($content) {
        include xinetd
        file { "/etc/xinetd.d/$name":
            ensure => present,
            owner => root,
            group => root,
            mode => 644,
            require => Package["xinetd"],
            content => $content,
            notify => Service['xinetd']
        }
    }
}