We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 648e3f6 commit e66d874Copy full SHA for e66d874
workshop/aws/ec2/templates/userdata.yaml
@@ -62,10 +62,13 @@ write_files:
62
echo "Your instance is ready!";
63
fi
64
65
- if [ -e /etc/.instance ]; then
66
- INSTANCE=$(cat /etc/.instance)
67
- CLUSTER_NAME="$INSTANCE-cluster"
68
- fi
+ INSTANCE=$(cat /etc/hostname)
+ CLUSTER_NAME="$INSTANCE-cluster"
+
+ #if [ -e /etc/.instance ]; then
69
+ # INSTANCE=$(cat /etc/.instance)
70
+ # CLUSTER_NAME="$INSTANCE-cluster"
71
+ #fi
72
export INSTANCE CLUSTER_NAME
73
74
%{ if presetup == true ~}
0 commit comments