summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-12-21 14:30:52 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-12-21 14:30:52 -0200
commit629c0c3262f0f1ef8bf7abd4b474b979d81085fb (patch)
treef8b174315a645836f4ef4e580e83b963da04d8b0 /manifests
parent5e9a2b52628b1c3cd666ef8645fc4bfba36b6d5f (diff)
downloadpuppet-rsync-629c0c3262f0f1ef8bf7abd4b474b979d81085fb.tar.gz
puppet-rsync-629c0c3262f0f1ef8bf7abd4b474b979d81085fb.tar.bz2
Check if rsync package is already defined
Diffstat (limited to 'manifests')
-rw-r--r--manifests/server.pp6
1 files changed, 4 insertions, 2 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index c6bfec2..cfb72be 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -1,8 +1,10 @@
# manifests/server.pp
class rsync::server {
- package {'rsync':
- ensure => installed,
+ if !defined(Package['rsync']) {
+ package {'rsync':
+ ensure => installed,
+ }
}
file { '/etc/rsyncd.conf':