Skip to content

Instantly share code, notes, and snippets.

View travnewmatic's full-sized avatar

Travis Newman travnewmatic

View GitHub Profile
# https://github.com/rancher/k3os/blob/master/README.md#configuration-reference
# https://www.centlinux.com/2019/05/configure-network-on-k3os-machine.html
boot_cmd:
- "mkdir -p /mnt/e0945f92-350f-424c-a951-2a47a6c9f767 /var/lib/connman/ethernet_a8a159476f3f_cable"
ssh_authorized_keys:
- "github:travnewmatic"
write_files:
#!/bin/bash
# wipe old k3s
bash /usr/local/bin/k3s-agent-uninstall.sh; bash /usr/local/bin/k3s-uninstall.sh
# install k3s https://rancher.com/docs/k3s/latest/en/installation/install-options/
curl -sfL https://get.k3s.io | \
K3S_KUBECONFIG_MODE="644" \
sh -s - \
server \
--cluster-init \
#!/bin/bash
# Adjust homserver, room, and accesstoken to your particular setup
# Script is expecting data to be piped in on STDIN
# Example:
# echo "some text" | sendmatrix
msgtype=m.text
homeserver=<homeserver>
room=<room id>