diff --git a/manifests/package.pp b/manifests/package.pp index 00e086b..e06a4d3 100644 --- a/manifests/package.pp +++ b/manifests/package.pp @@ -8,6 +8,9 @@ case $nexus::package_type { 'src': { + if !$nexus::version { + fail('nexus::version must be set when using package_type => src') + } $nexus_archive = "nexus-${nexus::version}-unix.tar.gz" $download_url = "${nexus::download_site}/${nexus_archive}" $dl_file = "${nexus::download_folder}/${nexus_archive}" @@ -68,7 +71,7 @@ ensure => directory, owner => $nexus::user, group => $nexus::group, - require => Archive[ $dl_file ] + require => Archive[$dl_file], } } }