Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Govcloud #230

Open
wants to merge 37 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
22774d5
InitialCodeCheckin for GovCloud Removed-kakfa,msk,uds,internaldb2,azu…
shajeena Nov 2, 2023
5514af1
InitialCodeCheckin for GovCloud Removed-kakfa,msk,uds,internaldb2,azu…
shajeena Nov 2, 2023
3789746
InitialCodeCheckin for GovCloud Removed-kakfa,msk,uds,internaldb2,azu…
shajeena Nov 2, 2023
2ef056d
InitialCodeCheckin for GovCloud Removed-kakfa,msk,uds,internaldb2,azu…
shajeena Nov 2, 2023
887a4f0
Initial code checkin for mongoDB
shajeena Nov 6, 2023
8455a5c
Initial code checkin for errors
shajeena Nov 6, 2023
9eb9115
Initial code checkin for errors
shajeena Nov 6, 2023
aff5b8e
Initial code checkin for errors
shajeena Nov 6, 2023
885d70b
Initial code checkin for errors
shajeena Nov 7, 2023
0156030
test withoutfips
shajeena Nov 7, 2023
e0e4f05
test fips
shajeena Nov 8, 2023
29c6848
changes applicable for GovCloud..
Nov 14, 2023
dd42048
Merge pull request #231 from ibm-mas/nat-GovCloud
NatarajBTI Nov 15, 2023
23f8ffb
code changes to remove sensitive data from log & bootnode..
Nov 20, 2023
fa2d078
Merge pull request #232 from ibm-mas/nat-Govcloud-nov20th
NatarajBTI Nov 20, 2023
91c6fc1
kubeadmin secret creation code, CFT & other code updates for GovCloud..
Nov 22, 2023
e9cb9f0
Merge pull request #233 from ibm-mas/nat-nov22nd-Govcloud
NatarajBTI Nov 22, 2023
8fe6c21
FinalGovCloudCode
shajeena Nov 24, 2023
dd9e073
FinalGovCloudCode
shajeena Nov 27, 2023
3b25623
FinalGovCloudCode
shajeena Nov 27, 2023
335eb53
FinalGovCloudCode
shajeena Nov 27, 2023
614a647
FinalGovCloudCode
shajeena Nov 27, 2023
c3c9361
FinalGovCloudCode
shajeena Nov 27, 2023
871689f
FinalGovCloudCode
shajeena Nov 27, 2023
6b805c3
FinalGovCloudCode
shajeena Nov 28, 2023
920ccc4
Merge pull request #235 from ibm-mas/GovCloudNov24
shajeena Nov 28, 2023
fbb87ea
code changes for logging & removing leading spaces from kubeadmin secret
Nov 28, 2023
2977a51
Merge pull request #236 from ibm-mas/nat-Nov28th-Govcloud
NatarajBTI Nov 29, 2023
b1fe1e4
OCS change
shajeena Nov 29, 2023
fffc77d
OCS change
shajeena Nov 29, 2023
4b2113a
Merge pull request #238 from ibm-mas/ocschange
shajeena Nov 29, 2023
3d4eca2
CFT labels
shajeena Nov 29, 2023
942fa4f
Update deploy.sh
NatarajBTI Nov 29, 2023
c385bd5
Adding new US GovCloud listing product Id to config file..
Dec 5, 2023
46396dc
Merge pull request #240 from ibm-mas/nat-prodcode-govcloud
NatarajBTI Dec 5, 2023
c40fab3
Update init.sh
NatarajBTI Dec 7, 2023
aceb219
Update deploy.sh
NatarajBTI Dec 7, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# MultiCloud Bootstrap Process

This folder contains the automation required for the bootstrap process.
The scripts in this folder are not meant to be called manually unless needed for troubleshooting. These scripts are called in a specific order during the bootstrap process. The bootstrap process is called from the virtual server (aka the `bootnode`) automatically when the bootnode is created. The bootnode is a virtual server (_EC2 instance_ in AWS and _virtual machine_ in Azure and Google Cloud) that gets created in the buyer's account during the MAS instance deployment.
The scripts in this folder are not meant to be called manually unless needed for troubleshooting. These scripts are called in a specific order during the bootstrap process. The bootstrap process is called from the virtual server (aka the `bootnode`) automatically when the bootnode is created. The bootnode is a virtual server (_EC2 instance_ in AWS ) that gets created in the buyer's account during the MAS instance deployment.

For example,
- In AWS, the Marketplace product has associated CloudFormation template, and the template creates the EC2 instance. The _UserData_ section in the EC2 instance has the commands to start the bootstrap process.
- In Azure, the Marketplace product has associated ARM template, and the template creates the virtual machine. The virtual machine has the _CustomScript extension_ defined that has the commands to start the bootstrap process.

Below are the steps that are invoked by Cloud provider automatically upon the creation of the bootnode.

#### From the template associated with the Marketplace product
Expand Down
2 changes: 2 additions & 0 deletions aws/aws-product-codes.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
9i61mljzpi48oygb8h47a0k0j:a08b925c-d629-4fa4-ba5f-c7785e0dab53:byol:IBM Maximo Application Suite (BYOL)
# Production Listing: BYOL
vrxqov1ml7fjwasbi7pkw4m3:0ee8c8fc-c4c4-4b23-880d-af752566675b:byol:IBM Maximo Application Suite (BYOL)
# Production Listing: BYOL (US GovCloud)
evjx4g1fikql160za77spyqv3:fb4819e7-048b-4060-8d8f-e9bfa2c6957f:byol:IBM Maximo Application Suite (BYOL) (US GovCloud)
# Production Listing: PAID Existing cluster Only - No New cluster creation option in cft
548es26yxydoawlwpghgoxcxn:567142b7-480a-4728-bb06-ca34e1e627bb:privatepublic:IBM Maximo Application Suite (Paid, without Red Hat OpenShift license)
# Production Listing: PAID Always create new cluster(IPI + UPI) - No existing cluster option in cft
Expand Down
11 changes: 0 additions & 11 deletions aws/bootnode-ami/prepare-bootnode-ami.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,6 @@ wget https://s3.amazonaws.com/amazoncloudwatch-agent/redhat/amd64/latest/amazon-
rpm -U ./amazon-cloudwatch-agent.rpm
rm -rf amazon-cloudwatch-agent.rpm




#Installig cpd-cli for db2wh
wget https://github.com/IBM/cpd-cli/releases/download/v12.0.3/cpd-cli-linux-SE-12.0.3.tgz
tar -zvxf cpd-cli-linux-SE-12.0.3.tgz
rm -rf cpd-cli-linux-SE-12.0.3.tgz
cd cpd-cli-linux-SE-12.0.3-43
chmod +x cpd-cli
mv * /usr/local/bin/

# Remove the SSH keys
rm -rf /home/ec2-user/.ssh/authorized_keys /root/.ssh/authorized_keys
echo "Bootnode preparation completed"
8 changes: 4 additions & 4 deletions aws/cleanup-mas-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ if [[ -z $REGION ]]; then
echo "ERROR: Parameter 'region-code' not provided"
usage
fi
SUPPORTED_REGIONS="us-east-1;us-east-2;us-west-2;ap-east-1;ap-southeast-1;ap-southeast-2;ap-northeast-1;eu-central-1;ap-south-1;ap-northeast-2;ap-northeast-3;ca-central-1;eu-south-1;eu-west-1;eu-west-2;eu-west-3;eu-north-1;af-south-1;me-south-1;sa-east-1"
SUPPORTED_REGIONS="us-gov-west-1;us-gov-east-1"
if [[ ${SUPPORTED_REGIONS} =~ $REGION ]]; then
echo "Supported region provided"
else
Expand Down Expand Up @@ -400,10 +400,10 @@ echo "S3BUCKETS = $S3BUCKETS"
if [[ -n $S3BUCKETS ]]; then
echo "Found S3 buckets for this AWS stack"
for inst in $S3BUCKETS; do
if [[ -n $inst ]]; then
if [[ -n $inst ]]; then
inst=$(echo $inst | tr -d '\r\n')
aws s3 rb s3://$inst --force --region $REGION
echo "Deleted bucket $inst"
echo "Deleted bucket $inst"
fi

done
Expand Down Expand Up @@ -563,7 +563,7 @@ echo "---------------------------------------------"

## Delete secret in Secrets Manager
echo "Checking for secret"
for secret in maximo-ocp-secret-$UNIQ_STR maximo-mas-secret-$UNIQ_STR; do
for secret in maximo-ocp-secret-$UNIQ_STR maximo-kubeadmin-secret-$UNIQ_STR maximo-mas-secret-$UNIQ_STR; do
SECRET=$(aws secretsmanager describe-secret --secret-id $secret --region $REGION | jq ".Name" | tr -d '"')
echo "SECRET = $SECRET"
if [[ -n $SECRET ]]; then
Expand Down
2 changes: 1 addition & 1 deletion aws/db/db-create-iam-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ else
if [ $? -ne 0 ]; then
SCRIPT_STATUS=36
fi
log "aws/db/db-create-iam-user.sh: .......... AWS_ACCESS_KEY_ID:DEPLOY_REGION $AWS_ACCESS_KEY_ID : $DEPLOY_REGION"
log "aws/db/db-create-iam-user.sh: .......... AWS_ACCESS_KEY_ID:DEPLOY_REGION : $DEPLOY_REGION"
# on successful completion of db-create-iam-user.sh, create a file
echo "COMPLETE" > /tmp/iam-user-created
chmod a+rw /tmp/iam-user-created
Expand Down
204 changes: 0 additions & 204 deletions aws/deploy-cp4d.sh

This file was deleted.

Loading