From 629c0c3262f0f1ef8bf7abd4b474b979d81085fb Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 21 Dec 2012 14:30:52 -0200 Subject: Check if rsync package is already defined --- manifests/server.pp | 6 ++++-- 1 file 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': -- cgit v1.2.3