Installs bash on FreeBSD
This commit is contained in:
parent
984ebd5ad2
commit
ce08c1e093
|
@ -7,4 +7,15 @@ class plnxtools{
|
||||||
path => "/opt",
|
path => "/opt",
|
||||||
ensure => directory
|
ensure => directory
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $::osfamily == 'FreeBSD' {
|
||||||
|
package {"bash":
|
||||||
|
ensure => installed
|
||||||
|
} ->
|
||||||
|
file {"/bin/bash":
|
||||||
|
ensure => link,
|
||||||
|
target => "/usr/local/bin/bash"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
class plnxtools::nutch
|
class plnxtools::nutch
|
||||||
() inherits plnxtools::nutch::params
|
() inherits plnxtools::nutch::params
|
||||||
{
|
{
|
||||||
class {"plnxtools": }
|
class {"plnxtools": }
|
||||||
|
->
|
||||||
archive { "/tmp/$filename":
|
archive { "/tmp/$filename":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
source => "$urlpath/${filename}",
|
source => "$urlpath/${filename}",
|
||||||
|
@ -20,7 +20,6 @@ class plnxtools::nutch
|
||||||
File['opt_dir']
|
File['opt_dir']
|
||||||
]
|
]
|
||||||
} ->
|
} ->
|
||||||
|
|
||||||
file { '/opt/nutch':
|
file { '/opt/nutch':
|
||||||
ensure => link,
|
ensure => link,
|
||||||
target => "/opt/${dirname}",
|
target => "/opt/${dirname}",
|
||||||
|
|
Loading…
Reference in New Issue