Skip to content

Instantly share code, notes, and snippets.

View jcpowermac's full-sized avatar

Joseph Callen jcpowermac

  • Red Hat
  • Paw Paw, Michigan
View GitHub Profile
@jcpowermac
jcpowermac / update.sh
Created January 31, 2017 20:59
virsh net-update example openvswitch (ovs) portgroup
virsh net-update ovsbr0 add --section portgroup --xml "<portgroup name='trunk'><vlan trunk='yes'><tag id='2970'/><tag id='2971'/></vlan></portgroup>" --config --live
virsh net-update ovsbr0 add --section portgroup --xml "<portgroup name='vlan-2979'><vlan><tag id='2979'/></vlan></portgroup>" --config --live
@jcpowermac
jcpowermac / camera.yaml
Created June 24, 2023 22:21
ESP32-S3-WROOM-1-N8R8 FREENOVE ESP32-S3-WROOM CAM
esphome:
name: camera
platformio_options:
build_flags: "-DBOARD_HAS_PSRAM -UARDUINO_USB_CDC_ON_BOOT"
board_build.memory_type: dio_opi
esp32:
board: esp32-s3-devkitc-1
variant: esp32s3
framework:
$region = new-tagcategory openshift-region
$zone = new-tagcategory openshift-zone
new-tag us-west -Category $region
new-tag us-east -Category $region
new-tag us-west-1a -Category $zone
@jcpowermac
jcpowermac / a_readme.md
Last active February 20, 2023 17:44
windows kubevirt

Windows Image Template

yum install /usr/bin/virt-install virtio-win
virt-install \
  --name 2016 \
 --memory 8192 \
@jcpowermac
jcpowermac / hosts.ini
Last active January 17, 2023 22:01
3.10 Install
[OSEv3:children]
masters
nodes
etcd
[OSEv3:vars]
# if your target hosts are Fedora uncomment this
#ansible_python_interpreter=/usr/bin/python3
@jcpowermac
jcpowermac / create-backends.sh
Last active January 9, 2023 14:54
haproxy dataplaneapi - create many backend servers
#!/bin/bash
USERNAME=dataplaneapi
PASSWORD=dataplaneapi
MASTER_BACKENDS=("api-server" "machine-config-server")
INGRESS_BACKENDS=("router-http" "router-https")
@jcpowermac
jcpowermac / compile.patch
Last active January 6, 2023 00:19
golang, delve, rr, openshift-installer
diff --git a/hack/build.sh b/hack/build.sh
index c5b9156ed3..0c157442bf 100755
--- a/hack/build.sh
+++ b/hack/build.sh
@@ -52,7 +52,7 @@ export CGO_ENABLED=0
case "${MODE}" in
release)
- LDFLAGS="${LDFLAGS} -s -w"
+ #LDFLAGS="${LDFLAGS}"
@jcpowermac
jcpowermac / alternative.md
Last active August 31, 2022 19:29
yaml from infra vsphere changes
$ kubectl get infrastructure.config.openshift.io/cluster -o yaml
apiVersion: config.openshift.io/v1
kind: Infrastructure
metadata:
  annotations:
    kcp.dev/cluster: root
@jcpowermac
jcpowermac / create-existing-folder-permissions.sh
Created January 13, 2021 17:29
openshift vsphere permissions with govc
#!/bin/bash
set -e
set -x
declare -A roles
VCENTER="Cns.Searchable InventoryService.Tagging.AttachTag InventoryService.Tagging.CreateCategory InventoryService.Tagging.CreateTag InventoryService.Tagging.DeleteCategory InventoryService.Tagging.DeleteTag InventoryService.Tagging.EditCategory InventoryService.Tagging.EditTag Sessions.ValidateSession StorageProfile.View"
VCENTER_ROLE_NAME="openshift-vcenter-level"
@jcpowermac
jcpowermac / build.sh
Created March 3, 2022 19:45
okd build fcos
#!/bin/bash
set +x
source ./cosa.sh
FCOS_BUILD="fcos-build"
OKD_VERSION="4.10"
MCOIMAGE="registry.ci.openshift.org/origin/${OKD_VERSION}:machine-config-operator"
ARTIMAGE="registry.ci.openshift.org/origin/${OKD_VERSION}:artifacts"
OKD_REPO="./okd-repo"
OVERLAY_EXTENSIONS="./overlay/extensions"