diff --git a/manifests/site.pp b/manifests/site.pp index bfc4faf..ce5f1af 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -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'] diff --git a/site/profile/manifests/localscratch_mount.pp b/site/profile/manifests/localscratch_mount.pp new file mode 100644 index 0000000..490caba --- /dev/null +++ b/site/profile/manifests/localscratch_mount.pp @@ -0,0 +1,12 @@ +class profile::localscratch::ephemeraldisk { + mount { '/localscratch': + ensure => 'mounted', + fstype => 'none', + options => 'rw,bind', + device => '/mnt', + require => [ + File['/mnt'], + File['/localscratch'], + ], + } +}