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
#!/bin/bash | |
shopt -s nullglob | |
for g in $(find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V); do | |
echo "IOMMU Group ${g##*/}:" | |
for d in $g/devices/*; do | |
echo -e "\t$(lspci -nns ${d##*/})" | |
done; | |
done; |
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
--- | |
kind: ImageSetConfiguration | |
apiVersion: mirror.openshift.io/v1alpha2 | |
storageConfig: | |
registry: | |
imageURL: jcall-testing.dota-lab.iad.redhat.com:8443/oc-mirror/oc-mirror-metadata | |
mirror: | |
platform: | |
graph: true # this requires a download from github.com | |
channels: |
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
# Kicstart created by John Call | |
# Installs RHEL8 via HTTP | |
url --url="http://rhdata6/rhel8/" | |
graphical | |
lang en_US.UTF-8 | |
firstboot --disable | |
rootpw --plaintext My-Password-123 | |
services --enabled="chronyd" | |
timezone America/New_York --isUtc |
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
# https://docs.openshift.com/container-platform/4.11/networking/k8s_nmstate/k8s-nmstate-updating-node-network-config.html | |
apiVersion: nmstate.io/v1 | |
kind: NodeNetworkConfigurationPolicy | |
metadata: | |
name: node1 | |
spec: | |
nodeSelector: | |
kubernetes.io/hostname: node1.example.com | |
desiredState: |
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
### ACL for Approved/Allowed sites, insert below this line in default config | |
#acl CONNECT method CONNECT | |
acl Approved_Sites dstdomain "/etc/squid/Approved_Sites.txt" | |
http_access deny !Approved_Sites | |
http_access allow Approved_Sites | |
### Force this proxy to use another proxy | |
#cache_peer hostname type http_port icp_port options |
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
### oc-mirror --config imageSetConfig.yaml file://./ocp-virt-4-14 | |
kind: ImageSetConfiguration | |
apiVersion: mirror.openshift.io/v1alpha2 | |
storageConfig: | |
local: | |
path: ./ | |
mirror: |
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
Host example-bastion | |
HostName example-bastion.fqdn.com | |
IdentityFile /root/.ssh/id_ed25519 # -i | |
User john # -l | |
ExitOnForwardFailure yes | |
ServerAliveInterval 10 | |
SessionType none # -N | |
RequestTTY no # -T | |
GatewayPorts yes # -g | |
LocalForward 3129 outside.proxy.com:3128 # -L |
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
#!/bin/bash | |
set -e | |
if [ $# != 4 ]; then | |
echo "Usage: ceph-snap-info.sh <namespace> <pvc_name> <primary_context> <dr_context>" | |
echo "e.g. : ceph-snap-info.sh pacman mongo-storage west east" | |
exit 1; | |
fi | |
if [ ! $(oc whoami) ]; then |
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
## /etc/squid/Approved_Sites.txt | |
# if you're installing OpenShift with vSphere integrations, put your vCenter FQDN/address in here too | |
# the OpenShift Machine API Operator will use the defined cluster proxy when creating Worker nodes/VMs | |
vcenter.example.com | |
# https://docs.openshift.com/container-platform/4.11/installing/install_config/configuring-firewall.html | |
# https://access.redhat.com/articles/3638561 | |
.quay.io # allows cdn.quay.io | |
.redhat.io # allows registry.redhat.io |
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
# file: query-vms.yml | |
# prerequisites: | |
# sudo dnf --enablerepo=rhv-4.4-manager-for-rhel-8-x86_64-rpms install "python*ovirt-engine-sdk4" | |
# or | |
# sudo dnf install https://resources.ovirt.org/pub/ovirt-4.4/rpm/el8/x86_64/python3-ovirt-engine-sdk4-4.4.15-1.el8.x86_64.rpm | |
# description: | |
# Simple playbook to extract basic details of VMs | |
# example invocation: | |
# ansible-playbook query-vms.yml |
NewerOlder