diff --git a/manifests/init.pp b/manifests/init.pp index 7579dce..3c328bb 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -7,4 +7,15 @@ class plnxtools{ path => "/opt", ensure => directory } + + if $::osfamily == 'FreeBSD' { + package {"bash": + ensure => installed + } -> + file {"/bin/bash": + ensure => link, + target => "/usr/local/bin/bash" + } + } + } diff --git a/manifests/nutch.pp b/manifests/nutch.pp index 4ffba37..f5f9e6c 100644 --- a/manifests/nutch.pp +++ b/manifests/nutch.pp @@ -5,8 +5,8 @@ class plnxtools::nutch () inherits plnxtools::nutch::params { - class {"plnxtools": } - + class {"plnxtools": } + -> archive { "/tmp/$filename": ensure => present, source => "$urlpath/${filename}", @@ -20,7 +20,6 @@ class plnxtools::nutch File['opt_dir'] ] } -> - file { '/opt/nutch': ensure => link, target => "/opt/${dirname}",