Skip to content

Commit e4d7a78

Browse files
authored
Merge pull request #42 from cmbrehm/main
PC 3.6 fixes - thanks @cmbrehm
2 parents 0c6e1e8 + 33e57d8 commit e4d7a78

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

Templates/AWS-HPC-Cluster.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ Parameters:
7676
AllowedPattern: ^(AUTO|ldaps?://.+)$
7777
Default : AUTO
7878

79+
GitHubUrl:
80+
Description: 'Location of installation files'
81+
Type: String
82+
AllowedPattern: ^https://.*$
83+
Default: https://github.com/aws-samples/1click-hpc
84+
7985
Conditions:
8086
CreateVpc: !Equals [!Ref VpcId, AUTO]
8187
CreateAD: !Equals [!Ref AD, AUTO]
@@ -364,7 +370,7 @@ Resources:
364370
- echo LANG=en_US.utf-8 >> /etc/environment
365371
- echo LC_ALL=en_US.UTF-8 >> /etc/environment
366372
- cd /home/ec2-user/environment
367-
- git clone "https://github.com/aws-samples/1click-hpc"
373+
- !Sub git clone ${GitHubUrl}
368374
- !Sub echo "export AWS_DEFAULT_REGION=${AWS::Region}" >> cluster_env
369375
- !Sub echo "export AWS_REGION_NAME=${AWS::Region}" >> cluster_env
370376
- !Sub echo "export S3_BUCKET=${Cloud9OutputBucket}" >> cluster_env

scripts/Cloud9-Bootstrap.sh

+2
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ export FSX
5454
/usr/bin/envsubst '${SLURM_DB_ENDPOINT}' < "1click-hpc/enginframe/mysql/efdb.config" > efdb.config
5555
/usr/bin/envsubst '${SLURM_DB_ENDPOINT}' < "1click-hpc/enginframe/efinstall.config" > efinstall.config
5656
/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
5758

5859
aws s3 cp --quiet efinstall.config "s3://${S3_BUCKET}/1click-hpc/enginframe/efinstall.config" --region "${AWS_REGION_NAME}"
5960
aws s3 cp --quiet fm.browse.ui "s3://${S3_BUCKET}/1click-hpc/enginframe/fm.browse.ui" --region "${AWS_REGION_NAME}"
6061
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}"
6163
aws s3 cp --quiet /usr/bin/mysql "s3://${S3_BUCKET}/1click-hpc/enginframe/mysql/mysql" --region "${AWS_REGION_NAME}"
6264
rm -f fm.browse.ui efinstall.config
6365

scripts/post.install.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ main() {
4343
runScripts "${@}"
4444
echo "[INFO][$(date '+%Y-%m-%d %H:%M:%S')] post.install.sh: STOP" >&2
4545
}
46-
4746
TMP_MODULES_DIR="/tmp/modules/"
4847
export host_name=$(hostname -s)
4948
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})
5150
export post_install_base=$(dirname "${post_install_url}")
5251
SLURM_ROOT="/opt/slurm"
5352
export SLURM_ETC="${SLURM_ROOT}/etc"

0 commit comments

Comments
 (0)