Skip to content

Commit bb27752

Browse files
Add possibility to skip Lustre installation
Signed-off-by: Hanwen <[email protected]>
1 parent f75d84c commit bb27752

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

cookbooks/aws-parallelcluster-environment/attributes/environment.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,5 @@
7777
default['cluster']['spack_shared_dir'] = "#{node['cluster']['shared_dir']}/spack"
7878
default['cluster']['spack']['version'] = '0.20.2'
7979
default['cluster']['spack']['sha256'] = '62f87ab6ca332118f2812a255edcf4be4977623d067b9396251ce8c44b158e49'
80+
81+
default['cluster']['lustre']['enabled'] = 'yes'

cookbooks/aws-parallelcluster-environment/libraries/fsx.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ def aws_domain_for_fsx(region)
88
CLASSIC_AWS_DOMAIN
99
end
1010
end
11+
12+
def lustre_enabled?
13+
['yes', true].include?(node['cluster']['lustre']['enabled'])
14+
end

cookbooks/aws-parallelcluster-environment/recipes/install.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
cloudwatch 'Install amazon-cloudwatch-agent'
2020
efa 'Install EFA'
2121
raid 'Install RAID prerequisite packages'
22-
lustre 'Install FSx options'
22+
if lustre_enabled?
23+
lustre 'Install FSx options'
24+
end
2325
efs 'Install efs-utils'
2426
stunnel 'Install stunnel'
2527
system_authentication "Install packages required for directory service integration"

0 commit comments

Comments
 (0)