Skip to content

Instantly share code, notes, and snippets.

@ClashTheBunny
Forked from DieterReuter/user-data-wifi.yml
Last active April 20, 2024 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ClashTheBunny/5c81708b05fb4f68aecba7367b3bf033 to your computer and use it in GitHub Desktop.
Save ClashTheBunny/5c81708b05fb4f68aecba7367b3bf033 to your computer and use it in GitHub Desktop.
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, install_base, bash,a -c, dpkg -i $(ls /nvidia-l4t-* | grep -v jetson-io) || true ]
- [ 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