Skip to content

Commit

Permalink
updated the aws iac code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenrong-wang committed Jul 9, 2024
1 parent 16cedca commit 2c5e401
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions infra-as-code/aws/hpc_stack_aws.compute.v2
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ resource "aws_instance" "COMPUTE_NODE_N" {
touch /root/CLOUD_FLAG && chmod 600 /root/CLOUD_FLAG
hostnamectl set-hostname COMPUTE_NODE_N
echo '${var.compute_passwd}' | passwd root --stdin >> /dev/null 2>&1
id ec2-user >> /dev/null 2>&1
if [ $? -eq 0 ]; then
userdel -f ec2-user
fi
#id ec2-user >> /dev/null 2>&1
#if [ $? -eq 0 ]; then
# userdel -f ec2-user
#fi
id openeuler >> /dev/null 2>&1
if [ $? -eq 0 ]; then
userdel -f openeuler
Expand Down
8 changes: 4 additions & 4 deletions infra-as-code/aws/hpc_stack_aws.master
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ resource "aws_instance" "master" {
touch /root/CLOUD_FLAG && chmod 600 /root/CLOUD_FLAG
hostnamectl set-hostname master
echo '${var.master_passwd}' | passwd root --stdin >> /dev/null 2>&1
id ec2-user >> /dev/null 2>&1
if [ $? -eq 0 ]; then
userdel -f ec2-user
fi
#id ec2-user >> /dev/null 2>&1
#if [ $? -eq 0 ]; then
# userdel -f ec2-user
#fi
id openeuler >> /dev/null 2>&1
if [ $? -eq 0 ]; then
userdel -f openeuler
Expand Down

0 comments on commit 2c5e401

Please sign in to comment.