Skip to content

Instantly share code, notes, and snippets.

View kobutton's full-sized avatar

Kyle Button kobutton

  • Red Hat
  • Raleigh, NC
View GitHub Profile
Import-Module VMware.VimAutomation.Core
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false | Out-Null
Connect-VIServer vcsa.home.kobutton.com
@kobutton
kobutton / mce-agent-config.yml
Created July 10, 2024 12:51
Disconnected Agent Config for HCP
---
apiVersion: metal3.io/v1alpha1
kind: Provisioning
metadata:
name: provisioning-configuration
spec:
preProvisioningOSDownloadURLS: {}
provisioningNetwork: Disabled
watchAllNamespaces: true
---
apiVersion: nvidia.com/v1
kind: ClusterPolicy
metadata:
name: gpu-cluster-policy
namespace: nvidia-gpu-operator
spec:
vgpuDeviceManager:
config:
default: default
enabled: true
@kobutton
kobutton / ldap_to_acm.py
Last active May 17, 2021 21:53
ldap-sync_to_acm-policy
#! /usr/bin/env python3
import json
import sys
parent_struct = {
"apiVersion": "policy.open-cluster-management.io/v1",
"kind": "Policy",
"metadata": {
"name": "ldap-sync-policy",
"namespace": "default",
"annotations": {