Skip to content

Instantly share code, notes, and snippets.

@jcnars
Created November 19, 2021 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcnars/88994d0306fcd796efd7df0cc883514a to your computer and use it in GitHub Desktop.
Save jcnars/88994d0306fcd796efd7df0cc883514a to your computer and use it in GitHub Desktop.
jcnarasimhan@jon2:~/DriveFS/My Drive/bmaas/test_automation/oss_prow_onboarding/running_cleanup_install_oracle$ !grep
grep -v \# ~/mydrive/bmaas/test_automation/oss_prow_onboarding/test_locally_rac.yaml
---
apiVersion: v1
kind: Pod
metadata:
name: test-pods-namespace-lo-podname
namespace: test-pods
spec:
hostNetwork: true
containers:
- name: ansibleinstance
image: quay.io/ansible/ansible-runner:stable-2.9-latest
command:
- /bin/sh
- -c
args:
- echo ; echo "starting - listing /root before adding host to known_hosts";
ls -al "/root";
mkdir /root/.ssh;
chmod 0700 /root/.ssh;
ssh-keyscan -tecdsa 172.16.30.1 > /root/.ssh/known_hosts;
echo; echo "listing /root/.ssh after adding host to known_hosts";
ls -al "/root/.ssh";
cd /root;git clone -b jcnars-patch-3 --single-branch https://github.com/google/bms-toolkit.git;
ls -l /root;
pip install jmespath;
cp /etc/files_needed_for_tk/google-cloud-sdk.repo /etc/yum.repos.d/google-cloud-sdk.repo;
yum install google-cloud-sdk -y;
yum install jq -y;
cd /root/bms-toolkit; ./install-oracle.sh --ora-swlib-bucket gs://bmaas-testing-oracle-software --instance-ssh-user ansible9 --instance-ssh-key /etc/files_needed_for_tk/id_rsa_bms_tk_key --backup-dest /u01/backups --ora-swlib-path /u01/oracle_install --ora-version 19 --ora-swlib-type gcs --ora-asm-disks /etc/files_needed_for_tk/rac-asm.json --ora-data-mounts /etc/files_needed_for_tk/rac-datamounts.json --cluster-type RAC --cluster-config /etc/files_needed_for_tk/rac-clusterconfig.json --ora-data-diskgroup DATA --ora-reco-diskgroup RECO --ora-db-name orcl --ora-db-container false > sydney2.install 2>&1;
sleep 60000;
echo; echo done;
resources:
requests:
memory: "2.0Gi"
cpu: "3.0"
volumeMounts:
- name: all-in-one
mountPath: /etc/files_needed_for_tk
volumes:
- name: all-in-one
projected:
sources:
- secret:
name: id-rsa-bms-ansible9-syd1
items:
- key: id_rsa_bms_tk_key
path: id_rsa_bms_tk_key
mode: 0400
- configMap:
name: rac-asm-syd2
items:
- key: asm_config_rac_syd2.json
path: rac-asm.json
- configMap:
name: rac-datamounts-syd2
items:
- key: data_mounts_config_rac_syd2.json
path: rac-datamounts.json
- configMap:
name: rac-inventory-syd2
items:
- key: inventory_rac_syd2
path: rac-inv
- configMap:
name: rac-clusterconfig-syd2
items:
- key: cluster_config_rac_syd2.json
path: rac-clusterconfig.json
- configMap:
name: google-cloud-sdk
items:
- key: google-cloud-sdk.repo
path: google-cloud-sdk.repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment