Skip to content

Commit

Permalink
Add possibility to skip Lustre installation
Browse files Browse the repository at this point in the history
Signed-off-by: Hanwen <[email protected]>
  • Loading branch information
hanwen-cluster authored and hanwen-pcluste committed Oct 21, 2024
1 parent ff6dc03 commit b7f4063
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,5 @@
default['cluster']['spack_shared_dir'] = "#{node['cluster']['shared_dir']}/spack"
default['cluster']['spack']['version'] = '0.20.2'
default['cluster']['spack']['sha256'] = '62f87ab6ca332118f2812a255edcf4be4977623d067b9396251ce8c44b158e49'

default['cluster']['lustre']['enabled'] = 'yes'
4 changes: 4 additions & 0 deletions cookbooks/aws-parallelcluster-environment/libraries/fsx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ def aws_domain_for_fsx(region)
CLASSIC_AWS_DOMAIN
end
end

def lustre_enabled?
['yes', true].include?(node['cluster']['lustre']['enabled'])
end
4 changes: 3 additions & 1 deletion cookbooks/aws-parallelcluster-environment/recipes/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
cloudwatch 'Install amazon-cloudwatch-agent'
efa 'Install EFA'
raid 'Install RAID prerequisite packages'
lustre 'Install FSx options'
if lustre_enabled?
lustre 'Install FSx options'
end
efs 'Install efs-utils'
stunnel 'Install stunnel'
system_authentication "Install packages required for directory service integration"
Expand Down

0 comments on commit b7f4063

Please sign in to comment.