Created
November 18, 2021 05:21
-
-
Save jcnars/26b8526cde45a1bb5778a36abe90b96b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jcnarasimhan@jon2:~/DriveFS/My Drive/bmaas/test_automation/oss_prow_onboarding$ !grep | |
grep -v \# test_locally.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; | |
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 "+RECO" --ora-swlib-path /u01/oracle_install --ora-version 19 --ora-swlib-type gcs --ora-asm-disks /etc/files_needed_for_tk/nonrac-asm.json --ora-data-mounts /etc/files_needed_for_tk/nonrac-datamounts.json --cluster-type NONE --ora-data-diskgroup DATA --ora-reco-diskgroup RECO --ora-db-name orcl --ora-db-container false --instance-ip-addr 172.16.30.1 --instance-hostname linuxserver44.orcl > sydney-1.out.thegabba; | |
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: nonrac-asm-syd1 | |
items: | |
- key: asm_disk_config_nonrac_primary_syd1.json | |
path: nonrac-asm.json | |
- configMap: | |
name: nonrac-datamounts-syd1 | |
items: | |
- key: data_mounts_config_nonrac_primary_syd1.json | |
path: nonrac-datamounts.json | |
- configMap: | |
name: nonrac-inventory-syd1 | |
items: | |
- key: inventory_orcl_nonrac_primary_syd1 | |
path: nonrac-inv | |
- configMap: | |
name: nonrac-asm-syd1-debug | |
items: | |
- key: asm_disk_config_nonrac_primary_syd1_debug.json | |
path: nonrac-asm_debug.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