diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-12-21 14:30:52 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-12-21 14:30:52 -0200 |
commit | 629c0c3262f0f1ef8bf7abd4b474b979d81085fb (patch) | |
tree | f8b174315a645836f4ef4e580e83b963da04d8b0 | |
parent | 5e9a2b52628b1c3cd666ef8645fc4bfba36b6d5f (diff) | |
download | puppet-rsync-629c0c3262f0f1ef8bf7abd4b474b979d81085fb.tar.gz puppet-rsync-629c0c3262f0f1ef8bf7abd4b474b979d81085fb.tar.bz2 |
Check if rsync package is already defined
-rw-r--r-- | manifests/server.pp | 6 |
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': |