Skip to content

Instantly share code, notes, and snippets.

@jcnars
Last active November 16, 2021 18:03
Show Gist options
  • Save jcnars/f073e7d1267ead1ac1bbecfb934d7b9c to your computer and use it in GitHub Desktop.
Save jcnars/f073e7d1267ead1ac1bbecfb934d7b9c 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 \# ../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";
echo; echo "connecting to BMX host using ssh ansible9@172.16.30.1 -i /etc/files_needed_for_tk/id_rsa_bms_tk_key hostname ";
echo ; ssh ansible9@172.16.30.1 -i /etc/files_needed_for_tk/id_rsa_bms_tk_key hostname;
echo; echo "connecting to BMX host using ansible all -i 172.16.30.1, -u ansible9 --key-file \"/etc/files_needed_for_tk/id_rsa_bms_tk_key\" -a \"hostname\" ";
ansible all -i 172.16.30.1, -u ansible9 --private-key "/etc/files_needed_for_tk/id_rsa_bms_tk_key" -a "hostname";
cd /root;git clone -b jcnars-patch-3 --single-branch https://github.com/google/bms-toolkit.git;
ls -l /root;
pip install jmespath;
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 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 600;
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment