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
| --- | |
| 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 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
| # 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 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
| # 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 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
| ### 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 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
| ### OpenShift 4.16 w/ Virtualization, Hyperconverged storage, and DISA STIG tooling | |
| # Basic commands to provide credentials and begin downloading | |
| # cp ~/pull-secret.json $XDG_RUNTIME_DIR/containers/auth.json | |
| # cd /mnt/usb-hdd | |
| # oc-mirror --config imageset-config.yaml file:///mnt/usb-hdd/my-folder | |
| # Basic commands to upload | |
| # podman login $(hostname):8443 | |
| # oc-mirror --from=/mnt/usb-hdd/my-folder docker://$(hostname):8443 |
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
| 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 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
| #!/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 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
| ## /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 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
| # 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 |
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
| # This script tries to gracefully shutdown a 3-node / "compact" OCP cluster. | |
| # Coordination is required when ODF, Logging, and Virtualization are deployed. | |
| #!/bin/bash | |
| CLUSTER_NAME="ocp.example.com" | |
| OC_BIN=/usr/local/bin/oc | |
| KUBECONFIG=$HOME/ocp.example.com/kubeconfig | |
| OC_CMD="$OC_BIN --kubeconfig=$KUBECONFIG" | |