Skip to content

Instantly share code, notes, and snippets.

@Knappek
Knappek / deploy-ubuntu-on-vcenter.sh
Last active November 7, 2024 11:00
deploy ubuntu VM on vCenter with public ssh key distributed and a static IP address
#!/usr/bin/env bash
set -e
set -u
set -o pipefail
# Prompt for GOVC environment variables if not already set
: "${GOVC_URL:?Please enter the vSphere URL (e.g., https://your-vsphere-server/sdk): }"
: "${GOVC_USERNAME:[email protected]}"
: "${GOVC_PASSWORD:=VMware1!}"
@Knappek
Knappek / overlay.yml
Last active November 8, 2024 10:03
YTT exclude unwanted routes
#@ load("@ytt:overlay", "overlay")
#@ load("@ytt:data", "data")
#@overlay/match by=overlay.all
---
routes:
#@ for route in data.values.unwanted_routes:
#@overlay/match by=overlay.subset(route), expects="1+"
#@overlay/remove
-