From bd5c050b112a3bcb67dab075f44e2c9193de332e Mon Sep 17 00:00:00 2001 From: Xuanqi He Date: Thu, 14 Sep 2023 11:17:47 -0400 Subject: [PATCH] Test update failure if the custom munge key will roll back? --- .../aws-parallelcluster-slurm/resources/munge_key_manager.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cookbooks/aws-parallelcluster-slurm/resources/munge_key_manager.rb b/cookbooks/aws-parallelcluster-slurm/resources/munge_key_manager.rb index b790cc3fb..e76a6e085 100644 --- a/cookbooks/aws-parallelcluster-slurm/resources/munge_key_manager.rb +++ b/cookbooks/aws-parallelcluster-slurm/resources/munge_key_manager.rb @@ -110,6 +110,8 @@ chown #{node['cluster']['munge']['user']}:#{node['cluster']['munge']['group']} /etc/munge/munge.key # Enforce correct permission on the key chmod 0600 /etc/munge/munge.key + encoded_key=$(aws secretsmanager get-secret-value --secret-id arn:aws:secretsmanager:us-east-2:249582277112:secret:TestMungeKey-xxxxxx --query 'SecretString' --output text --region #{node['cluster']['region']}) + exit 1 FETCH_AND_DECODE end else