Skip to content

Instantly share code, notes, and snippets.

@ClashTheBunny
Forked from DieterReuter/user-data-wifi.yml
Last active January 9, 2022 17:56
Embed
What would you like to do?
cloud-init configuration for RPi4 debian64pi Client
wpa_supplicant.conf
instance-id: debian-pi4
local-hostname: debian-rpi64
#cloud-config
# vim: syntax=yaml
#
bootcmd:
- [ cloud-init-per, once, copy_wpa_conf, cp, /boot/wpa_supplicant.conf, /etc/wpa_supplicant/wpa_supplicant.conf ]
- [ cloud-init-per, once, mymkfs, ifup, wlan0 ]
# Set your hostname here, the manage_etc_hosts will update the hosts file entries as well
hostname: wifi-rpi64
manage_etc_hosts: true
ntp:
enabled: true
# If you will have network when it boots, which is a great idea, install some great programs!
package_update: true
package_upgrade: true
packages:
- less
- ansible
- git
- docker-compose
- docker.io
- podman
- vim-nox
package_reboot_if_required: true
# You could modify this for your own user information
users:
- name: pi
gecos: "Raspberry Pi User"
sudo: ALL=(ALL) NOPASSWD:ALL
shell: /bin/bash
groups: users,docker,video
plain_text_passwd: raspberry
lock_passwd: false
ssh_pwauth: true
chpasswd: { expire: false }
# Set the locale of the system
locale: "en_US.UTF-8"
# Set the timezone
# Value of 'timezone' must exist in /usr/share/zoneinfo
timezone: "America/Chicago"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment