This file contains hidden or 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
# connect to OVN Northbound DB https://gist.github.com/dlbewley/b4d4c85931e7a9c03caf56db1a1a0d2e | |
$ ovncli.sh | |
# find local chassis id | |
sh-5.1# ovn-sbctl find chassis other_config:is-remote="false" | |
_uuid : a0aad588-f850-4601-b4dc-63199440ab58 | |
encaps : [fcbeb3fc-d810-49db-ae6c-f043e3441d25] | |
external_ids : {} | |
hostname : hub-tq2sk-cnv-xcxw2 | |
name : "f57f0c4e-5d93-4639-a016-7cea61281c04" |
This file contains hidden or 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
# used to lookup vcenter connection details from 1Password | |
VAULT=development | |
CLUSTER=vcenter | |
export GOVC_USERNAME="$(op read op://${VAULT}/${CLUSTER}/username)" | |
export GOVC_PASSWORD="$(op read op://${VAULT}/${CLUSTER}/password)" | |
export GOVC_URL="$(op read op://${VAULT}/${CLUSTER}/website)" |
This file contains hidden or 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
coreos-installer iso ignition show agent.x86_64.iso | jq -s > /tmp/agent.json | |
# you can read any file of course, but i wanted to verify the pull secret in this case | |
cat /tmp/agent.json | jq -r '.[].storage.files[] | select(.path | contains("pull-secret.yaml")) | .contents.source' | awk -F, '{print $2}' | base64 -d |
OlderNewer