Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purpleidea-puppetmatlab
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rane Squires
purpleidea-puppetmatlab
Commits
8a1051c8
Commit
8a1051c8
authored
Aug 06, 2019
by
Jim Deverick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't mount matlab.iso if matlab is installed
parent
a3820f1d
Pipeline
#84
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
14 deletions
+20
-14
manifests/install.pp
manifests/install.pp
+20
-14
No files found.
manifests/install.pp
View file @
8a1051c8
...
@@ -57,12 +57,12 @@ class matlab::install( # $namevar matlab release version
...
@@ -57,12 +57,12 @@ class matlab::install( # $namevar matlab release version
# 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"
:
ensure
=>
present
,
ensure
=>
link
,
owner
=>
root
,
#
owner => root,
group
=>
root
,
#
group => root,
mode
=>
'0600'
,
# u=rw,go=
#
mode => '0600', # u=rw,go=
backup
=>
false
,
# don't backup to filebucket!
backup
=>
false
,
# don't backup to filebucket!
source
=>
$iso
,
target
=>
$iso
,
alias
=>
"matlab_iso.
${name_}
"
,
alias
=>
"matlab_iso.
${name_}
"
,
require
=>
File
[
"/mnt/matlab-
${name_}
"
],
require
=>
File
[
"/mnt/matlab-
${name_}
"
],
}
}
...
@@ -71,16 +71,22 @@ class matlab::install( # $namevar matlab release version
...
@@ -71,16 +71,22 @@ class matlab::install( # $namevar matlab release version
# TODO: replace this mount with an exec that has an:
# TODO: replace this mount with an exec that has an:
# onlyif => the_binary_is_not_installed so that a normal machine
# onlyif => the_binary_is_not_installed so that a normal machine
# doesn't need to have the iso mounted all the time...
# doesn't need to have the iso mounted all the time...
mount
{
"/mnt/matlab-
${name_}
"
:
#mount { "/mnt/matlab-${name_}":
ensure
=>
mounted
,
# ensure => mounted,
atboot
=>
true
,
# atboot => true,
device
=>
"
${vardir}
/MATHWORKS-
${name_}
.iso"
,
# device => "${vardir}/MATHWORKS-${name_}.iso",
fstype
=>
'iso9660'
,
# fstype => 'iso9660',
options
=>
'loop,ro'
,
# options => 'loop,ro',
dump
=>
'0'
,
# fs_freq: 0 to skip file system dumps
# dump => '0', # fs_freq: 0 to skip file system dumps
pass
=>
'0'
,
# fs_passno: 0 to skip fsck on boot
# pass => '0', # fs_passno: 0 to skip fsck on boot
# alias => "matlab_mount.${name_}",
# require => [File["matlab_iso.${name_}"]],
#}
exec
{
"mount -t iso9660 -o loop,ro
${vardir}
/MATHWORKS-
${name_}
.iso /mnt/matlab-
${name_}
"
:
alias
=>
"matlab_mount.
${name_}
"
,
alias
=>
"matlab_mount.
${name_}
"
,
require
=>
[
File
[
"matlab_iso.
${name_}
"
]],
unless
=>
"test -e
${install_destination}
/bin/matlab"
,
require
=>
[
File
[
"matlab_iso.
${name_}
"
]]
}
}
# build installer parameters file in our scratch directory
# build installer parameters file in our scratch directory
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment