Skip to content

Commit

Permalink
Merge pull request #3 from ComputeCanada/2023-10-16-add-ephemeral-bin…
Browse files Browse the repository at this point in the history
…d-mount

Add class to bindmount the ephemeral /mnt to /localscratch
  • Loading branch information
matthewbenstead authored Oct 17, 2023
2 parents df0c34e + 06f191a commit 0699d60
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/site.pp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@

include profile::ceph::client
include profile::ccsudo::sudoers
include profile::localscratch::ephemeraldisk

Class['profile::nfs::client'] -> Service['slurmd']
Class['profile::gpu'] -> Service['slurmd']
Expand Down
12 changes: 12 additions & 0 deletions site/profile/manifests/localscratch_mount.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class profile::localscratch::ephemeraldisk {
mount { '/localscratch':
ensure => 'mounted',
fstype => 'none',
options => 'rw,bind',
device => '/mnt',
require => [
File['/mnt'],
File['/localscratch'],
],
}
}

0 comments on commit 0699d60

Please sign in to comment.