Skip to content

Instantly share code, notes, and snippets.

View griznog's full-sized avatar

griznog griznog

View GitHub Profile
@griznog
griznog / dnsmasq.conf
Last active April 12, 2024 14:40
DNSMasq conf for warewulf
###########################################################
# Logging, uncomment for troubleshooting.
log-dhcp
# log-queries
log-async=100
# log-debug # Only works with newest dnsmasq.
# Only use one of these.
# Log to syslog
log-facility=DAEMON
@griznog
griznog / example.txt
Created August 29, 2023 13:52
Example of using nodes.conf without any `struct` involved.
$ go mod init yamltesting
$ go mod tidy
$ go run main.go nodes.conf ifcfg.ww
# Node: cpu-a-1
TYPE=Ethernet
DEVICE=enp161s0f1np1
NAME=enp161s0f1np1
BOOTPROTO=static
DEVTIMEOUT=10
IPADDR=100.64.2.1
@griznog
griznog / wwrebuild
Created August 24, 2023 13:48
Wrapper for building all overlays.
#!/bin/bash
# Author: griznog
# Purpose: Build/update overlays for all nodes.
# Pull in warewulf functions/variables for this node.
[[ -f /warewulf/etc/functions ]] && source /warewulf/etc/functions || exit 1
# Collect an MD5SUM for an entire directory, hopefully in a repeatable way.