/[adm]/puppet/modules/xinetd/manifests/init.pp
ViewVC logotype

Contents of /puppet/modules/xinetd/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 789 - (show annotations) (download)
Thu Jan 13 20:33:49 2011 UTC (13 years, 3 months ago) by misc
File size: 553 byte(s)
add a xinetd module
1 class xinetd {
2 package { "xinetd":
3 ensure => installed
4 }
5
6 service { xinetd:
7 ensure => running,
8 path => "/etc/init.d/xinetd",
9 subscribe => [ Package["xinetd"] ]
10 }
11
12 define service($content) {
13 include xinetd
14 file { "/etc/xinetd.d/$name":
15 ensure => present,
16 owner => root,
17 group => root,
18 mode => 644,
19 require => Package["xinetd"],
20 content => $content,
21 notify => Service['xinetd']
22 }
23 }
24 }
25

  ViewVC Help
Powered by ViewVC 1.1.30