From e98f10494ff91860871da5038b5f744a879d6d1c Mon Sep 17 00:00:00 2001 From: pulquero Date: Thu, 11 Jun 2015 15:12:01 +0100 Subject: [PATCH] Fixed possible cyclic dep when used with other modules "cwd => '/opt'" implies that /opt should exist, so there should be an explicit file {'opt':}. This fixed some cyclic dep hell for me. --- manifests/maven.pp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/manifests/maven.pp b/manifests/maven.pp index 0c3a183..c44a5ed 100644 --- a/manifests/maven.pp +++ b/manifests/maven.pp @@ -58,6 +58,13 @@ before => Exec['maven-untar'], } } + + if ! defined(File['/opt']) { + file { '/opt': + ensure => directory, + } + } + exec { 'maven-untar': command => "tar xf /tmp/apache-maven-${version}-bin.tar.gz", cwd => '/opt',