Only mess with /etc/aliases if it already exists
authorPeter Palfrader <peter@palfrader.org>
Wed, 20 Jun 2012 08:59:36 +0000 (10:59 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 20 Jun 2012 08:59:36 +0000 (10:59 +0200)
modules/debian-org/manifests/init.pp

index 8c76900..3f57de2 100644 (file)
@@ -197,6 +197,7 @@ class debian-org {
        mailalias { 'samhain-reports':
                ensure => present,
                recipient => $debianadmin,
+               onlyif  => "test -e /etc/aliases",
        }
 
        exec { 'apt-get update':