From 4228e634c37959131c3b4917c07ac2ad6bced70e Mon Sep 17 00:00:00 2001 From: pulquero Date: Wed, 8 Jul 2015 08:31:38 +0100 Subject: [PATCH] Play nice with other modules Other modules may also be used to install stuff into $target but only one can define it. --- manifests/init.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index f7079f2..65bba91 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -40,8 +40,10 @@ ensure => present, } - file { $target: - ensure => directory, + if ! defined(File[$target]) { + file { $target: + ensure => directory, + } } staging::extract { $groovy_filename: