feat: add cloud-config for user setup and update setup script for compatibility checks
Some checks failed
Nix Format Check / check-format (push) Failing after 38s
Some checks failed
Nix Format Check / check-format (push) Failing after 38s
This commit is contained in:
22
cloud-config
Normal file
22
cloud-config
Normal file
@@ -0,0 +1,22 @@
|
||||
#cloud-config
|
||||
|
||||
# Create a user named menno with sudo privileges
|
||||
users:
|
||||
- name: menno
|
||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||
groups: sudo, adm
|
||||
shell: /bin/bash
|
||||
ssh_authorized_keys:
|
||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM+sKpcREOUjwMMSzEWAso6830wbOi8kUxqpuXWw5gHr menno_1password
|
||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE22Hfx8wgkc57TXX1TCMHcNrCdjbfog5QeHFJfl7IeD menno_fallback
|
||||
|
||||
# Update package lists and install latest updates
|
||||
package_update: true
|
||||
package_upgrade: true
|
||||
|
||||
# Configure system to preserve hostname
|
||||
preserve_hostname: false
|
||||
hostname: mennos-vm
|
||||
|
||||
# Final message when cloud-init completes
|
||||
final_message: "Cloud-init has finished setting up the system with user 'menno'. System boot completed after $UPTIME seconds."
|
Reference in New Issue
Block a user