aboutsummaryrefslogtreecommitdiffstats
path: root/modules/rsyncd/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/rsyncd/manifests/init.pp')
-rw-r--r--modules/rsyncd/manifests/init.pp34
1 files changed, 7 insertions, 27 deletions
diff --git a/modules/rsyncd/manifests/init.pp b/modules/rsyncd/manifests/init.pp
index 148cc426..5cc9e2fd 100644
--- a/modules/rsyncd/manifests/init.pp
+++ b/modules/rsyncd/manifests/init.pp
@@ -1,32 +1,12 @@
-class rsyncd {
+class rsyncd($rsyncd_conf = 'rsyncd/rsyncd.conf') {
- package { xinetd:
- ensure => installed
+ xinetd::service { 'rsync':
+ content => template('rsyncd/xinetd')
}
- service { xinetd:
- ensure => running,
- path => "/etc/init.d/xinetd",
- subscribe => [ Package["xinetd"], File["rsync"] ]
- }
-
- file { "rsync":
- path => "/etc/xinetd.d/rsync",
- ensure => present,
- owner => root,
- group => root,
- mode => 644,
- require => Package["xinetd"],
- content => template("rsyncd/xinetd")
- }
-
- file { "rsyncd.conf":
- path => "/etc/rsyncd.conf",
- ensure => present,
- owner => root,
- group => root,
- mode => 644,
- require => Package["rsync"],
- content => template("rsyncd/rsyncd.conf")
+ file { 'rsyncd.conf':
+ path => '/etc/rsyncd.conf',
+ require => Package['rsync'],
+ content => template($rsyncd_conf)
}
}