From bb27752212fa7761b2b4024274e64094f4852676 Mon Sep 17 00:00:00 2001 From: Hanwen Date: Fri, 18 Oct 2024 10:26:05 -0700 Subject: [PATCH] Add possibility to skip Lustre installation Signed-off-by: Hanwen --- .../aws-parallelcluster-environment/attributes/environment.rb | 2 ++ cookbooks/aws-parallelcluster-environment/libraries/fsx.rb | 4 ++++ cookbooks/aws-parallelcluster-environment/recipes/install.rb | 4 +++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/cookbooks/aws-parallelcluster-environment/attributes/environment.rb b/cookbooks/aws-parallelcluster-environment/attributes/environment.rb index fbc3dc416f..ff7d42501b 100644 --- a/cookbooks/aws-parallelcluster-environment/attributes/environment.rb +++ b/cookbooks/aws-parallelcluster-environment/attributes/environment.rb @@ -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' diff --git a/cookbooks/aws-parallelcluster-environment/libraries/fsx.rb b/cookbooks/aws-parallelcluster-environment/libraries/fsx.rb index dc5909f418..40f4871a79 100644 --- a/cookbooks/aws-parallelcluster-environment/libraries/fsx.rb +++ b/cookbooks/aws-parallelcluster-environment/libraries/fsx.rb @@ -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 diff --git a/cookbooks/aws-parallelcluster-environment/recipes/install.rb b/cookbooks/aws-parallelcluster-environment/recipes/install.rb index a369754a80..ab82c8ccdf 100644 --- a/cookbooks/aws-parallelcluster-environment/recipes/install.rb +++ b/cookbooks/aws-parallelcluster-environment/recipes/install.rb @@ -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"