Skip to content

Commit

Permalink
Added VM.Standard.E5.Flex shape support
Browse files Browse the repository at this point in the history
Updated fstab configuration to include uid, gid
  • Loading branch information
cdivita committed Dec 7, 2023
1 parent cdfb17f commit 10ffe71
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cloud-init/resources/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,14 @@ chown root:root
# Update permissions of s3fs passwd file
chmod 0600 $S3FS_PASSWD


S3FS_UID="$(id -u ${sftp-user-name} 2> /dev/null || echo 1000)"
S3FS_GID="$(id -g ${sftp-user-group} 2> /dev/null || echo 1000)"

# Adding s3fs configuration to /etc/fstab for mounting the Object Storage bucket
if ! grep -q 's3fs#${bucket-name}' /etc/fstab ; then
echo '# Configuration for mounting OCI Object Storage buckets through s3fs' >> /etc/fstab
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
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
fi

# Mount the Object Storage bucket
Expand Down
6 changes: 6 additions & 0 deletions schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ variables:
- eq:
- servers_shape
- "VM.Standard.E4.Flex"
- eq:
- servers_shape
- "VM.Standard.E5.Flex"
- eq:
- servers_shape
- "VM.Optimized3.Flex"
Expand All @@ -293,6 +296,9 @@ variables:
- eq:
- servers_shape
- "VM.Standard.E4.Flex"
- eq:
- servers_shape
- "VM.Standard.E5.Flex"
- eq:
- servers_shape
- "VM.Optimized3.Flex"
Expand Down

0 comments on commit 10ffe71

Please sign in to comment.