Skip to content

Instantly share code, notes, and snippets.

@waxb
waxb / render.tf
Created March 30, 2021 10:55
Render ansible inventory from terraform
#To templates dir to render from
${ansvars}
${group}
${servers}
#To VM module main.tf
data "template_file" "inventory" {
template = file("${path.module}/templates/ansible_inv.tpl")
@waxb
waxb / wifijoin.sh
Last active April 25, 2019 13:34
Raspberry Pi Wi-Fi join script
#!/bin/bash
# Raspbian Wi-Fi connect script
# You can scan [1], connect directly [2], rejoin [3] or view the configuration file [4] with this little script I wrote just for fun and I thought I'd share it :-)
# Tested on Raspberry Pi Zero w
if [ "$(id -u)" != "0" ] ; then
echo "Please run this script as superuser"
exit 1
fi