From: Peter Palfrader <peter@palfrader.org>
Date: Fri, 3 Dec 2010 11:10:10 +0000 (+0100)
Subject: Cannot ensure a package is installed more than once
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=0a000c06d40c6acdc443de790364032c429e1176;p=dsa-puppet.git

Cannot ensure a package is installed more than once
---

diff --git a/modules/rsyncd-log/manifests/init.pp b/modules/rsyncd-log/manifests/init.pp
index ae461d86..ca3c4f7c 100644
--- a/modules/rsyncd-log/manifests/init.pp
+++ b/modules/rsyncd-log/manifests/init.pp
@@ -1,9 +1,8 @@
 class rsyncd-log {
-    package { "logrotate": ensure => installed; }
-
     file {
         "/etc/logrotate.d/dsa-rsyncd":
             source  => "puppet:///modules/rsyncd-log/logrotate.d-dsa-rsyncd",
+            require => Package["logrotate"],
             ;
         "/var/log/rsyncd":
             ensure  => directory,