Skip to content

Commit 10ffe71

Browse files
committed
Added VM.Standard.E5.Flex shape support
Updated fstab configuration to include uid, gid
1 parent cdfb17f commit 10ffe71

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

cloud-init/resources/bootstrap.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,14 @@ chown root:root
6666
# Update permissions of s3fs passwd file
6767
chmod 0600 $S3FS_PASSWD
6868

69+
70+
S3FS_UID="$(id -u ${sftp-user-name} 2> /dev/null || echo 1000)"
71+
S3FS_GID="$(id -g ${sftp-user-group} 2> /dev/null || echo 1000)"
72+
6973
# Adding s3fs configuration to /etc/fstab for mounting the Object Storage bucket
7074
if ! grep -q 's3fs#${bucket-name}' /etc/fstab ; then
7175
echo '# Configuration for mounting OCI Object Storage buckets through s3fs' >> /etc/fstab
72-
echo "s3fs#${bucket-name} $SFTP_DIR fuse _netdev,allow_other,use_path_request_style,passwd_file=$S3FS_PASSWD,url=https://${bucket-namespace}.compat.objectstorage.${region}.oraclecloud.com/ 0 0" >> /etc/fstab
76+
echo "s3fs#${bucket-name} $SFTP_DIR fuse _netdev,allow_other,use_path_request_style,passwd_file=$S3FS_PASSWD,url=https://${bucket-namespace}.compat.objectstorage.${region}.oraclecloud.com/,uid=$S3FS_UID,gid=$S3FS_GID 0 0" >> /etc/fstab
7377
fi
7478

7579
# Mount the Object Storage bucket

schema.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ variables:
270270
- eq:
271271
- servers_shape
272272
- "VM.Standard.E4.Flex"
273+
- eq:
274+
- servers_shape
275+
- "VM.Standard.E5.Flex"
273276
- eq:
274277
- servers_shape
275278
- "VM.Optimized3.Flex"
@@ -293,6 +296,9 @@ variables:
293296
- eq:
294297
- servers_shape
295298
- "VM.Standard.E4.Flex"
299+
- eq:
300+
- servers_shape
301+
- "VM.Standard.E5.Flex"
296302
- eq:
297303
- servers_shape
298304
- "VM.Optimized3.Flex"

0 commit comments

Comments
 (0)