Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cloud-init configuration for RPi4 debian64pi Client
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
# 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
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