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',