Skip to content

Commit dd8aa99

Browse files
hanwen-clusterhanwen-pcluste
authored andcommitted
Add nss_slurm.conf in compute nodes when nss plugin is used
This conf file is useful for nss plugin when nodename is different from hostname. Even the cluster is running without the conf file, but it is recommended because it potentially reduces the lookups of the nss plugin When UseEc2Hostname is true, the nodename is different from hostname Signed-off-by: Hanwen <[email protected]>
1 parent a8fd474 commit dd8aa99

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cookbooks/aws-parallelcluster-slurm/recipes/config_compute.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,11 @@
6161
sed -i 's/^group: */&slurm /' #{nsswitch_path}
6262
NSSWITCH
6363
end
64+
65+
file '/etc/nss_slurm.conf' do
66+
content("NodeName=#{hit_slurm_nodename}")
67+
mode '0644'
68+
owner 'root'
69+
group 'root'
70+
end
6471
end

0 commit comments

Comments
 (0)