Commit f8c165e9 authored by Rane Squires's avatar Rane Squires

change vardir to filepath

parent 61c3cdc7
Pipeline #61 canceled with stages
...@@ -14,9 +14,9 @@ class matlab::install( # $namevar matlab release version ...@@ -14,9 +14,9 @@ class matlab::install( # $namevar matlab release version
$prefix = '/opt' # install prefix $prefix = '/opt' # install prefix
) { ) {
include 'matlab' include 'matlab'
include matlab::vardir #include matlab::vardir
#$vardir = $::matlab::vardir::module_vardir # with trailing slash #$vardir = $::matlab::vardir::module_vardir # with trailing slash
$vardir = regsubst($::matlab::vardir::module_vardir, '\/$', '') $vardir = "/opt/matlab_install"
$install_destination = "${prefix}/MATLAB/${name}" $install_destination = "${prefix}/MATLAB/${name}"
...@@ -38,7 +38,7 @@ class matlab::install( # $namevar matlab release version ...@@ -38,7 +38,7 @@ class matlab::install( # $namevar matlab release version
backup => false, # don't backup to filebucket backup => false, # don't backup to filebucket
} }
# get iso to mount # get iso to mountUpdate Puppetfile
# TODO: since there seem to be different iso's for each version, maybe # TODO: since there seem to be different iso's for each version, maybe
# we should add a unique identifier based on the $iso variable here. # we should add a unique identifier based on the $iso variable here.
file { "${vardir}/MATHWORKS-${name}.iso": file { "${vardir}/MATHWORKS-${name}.iso":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment