File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,12 @@ Parameters:
76
76
AllowedPattern : ^(AUTO|ldaps?://.+)$
77
77
Default : AUTO
78
78
79
+ GitHubUrl :
80
+ Description : ' Location of installation files'
81
+ Type : String
82
+ AllowedPattern : ^https://.*$
83
+ Default : https://github.com/aws-samples/1click-hpc
84
+
79
85
Conditions :
80
86
CreateVpc : !Equals [!Ref VpcId, AUTO]
81
87
CreateAD : !Equals [!Ref AD, AUTO]
@@ -364,7 +370,7 @@ Resources:
364
370
- echo LANG=en_US.utf-8 >> /etc/environment
365
371
- echo LC_ALL=en_US.UTF-8 >> /etc/environment
366
372
- cd /home/ec2-user/environment
367
- - git clone "https://github.com/aws-samples/1click-hpc"
373
+ - !Sub git clone ${GitHubUrl}
368
374
- !Sub echo "export AWS_DEFAULT_REGION=${AWS::Region}" >> cluster_env
369
375
- !Sub echo "export AWS_REGION_NAME=${AWS::Region}" >> cluster_env
370
376
- !Sub echo "export S3_BUCKET=${Cloud9OutputBucket}" >> cluster_env
Original file line number Diff line number Diff line change @@ -54,10 +54,12 @@ export FSX
54
54
/usr/bin/envsubst ' ${SLURM_DB_ENDPOINT}' < " 1click-hpc/enginframe/mysql/efdb.config" > efdb.config
55
55
/usr/bin/envsubst ' ${SLURM_DB_ENDPOINT}' < " 1click-hpc/enginframe/efinstall.config" > efinstall.config
56
56
/usr/bin/envsubst ' ${S3_BUCKET}' < " 1click-hpc/enginframe/fm.browse.ui" > fm.browse.ui
57
+ /usr/bin/envsubst ' ${POST_INSTALL}' < " 1click-hpc/scripts/post.install.sh" > post.install.sh
57
58
58
59
aws s3 cp --quiet efinstall.config " s3://${S3_BUCKET} /1click-hpc/enginframe/efinstall.config" --region " ${AWS_REGION_NAME} "
59
60
aws s3 cp --quiet fm.browse.ui " s3://${S3_BUCKET} /1click-hpc/enginframe/fm.browse.ui" --region " ${AWS_REGION_NAME} "
60
61
aws s3 cp --quiet efdb.config " s3://${S3_BUCKET} /1click-hpc/enginframe/mysql/efdb.config" --region " ${AWS_REGION_NAME} "
62
+ aws s3 cp --quiet post.install.sh " s3://${S3_BUCKET} /1click-hpc/scripts/post.install.sh" --region " ${AWS_REGION_NAME} "
61
63
aws s3 cp --quiet /usr/bin/mysql " s3://${S3_BUCKET} /1click-hpc/enginframe/mysql/mysql" --region " ${AWS_REGION_NAME} "
62
64
rm -f fm.browse.ui efinstall.config
63
65
Original file line number Diff line number Diff line change @@ -43,11 +43,10 @@ main() {
43
43
runScripts " ${@ } "
44
44
echo " [INFO][$( date ' +%Y-%m-%d %H:%M:%S' ) ] post.install.sh: STOP" >&2
45
45
}
46
-
47
46
TMP_MODULES_DIR=" /tmp/modules/"
48
47
export host_name=$( hostname -s)
49
48
export SLURM_CONF_FILE=" /opt/slurm/etc/pcluster/slurm_parallelcluster_*_partition.conf"
50
- post_install_url=$( dirname ${cfn_postinstall } )
49
+ post_install_url=$( dirname ${POST_INSTALL } )
51
50
export post_install_base=$( dirname " ${post_install_url} " )
52
51
SLURM_ROOT=" /opt/slurm"
53
52
export SLURM_ETC=" ${SLURM_ROOT} /etc"
You can’t perform that action at this time.
0 commit comments