From ce08c1e09335c3825714be32a24ba4b836242d05 Mon Sep 17 00:00:00 2001 From: 7u83 <7u83@mail.ru> Date: Thu, 16 Jul 2020 17:02:02 +0000 Subject: [PATCH] Installs bash on FreeBSD --- manifests/init.pp | 11 +++++++++++ manifests/nutch.pp | 5 ++--- 2 files changed, 13 insertions(+), 3 deletions(-) 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}",