ci: initial cluster state
This commit is contained in:
commit
3b54d183c5
8 changed files with 500 additions and 0 deletions
28
tofu/cloud_init.cfg.yml
Normal file
28
tofu/cloud_init.cfg.yml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#cloud-config
|
||||
# vim: syntax=yaml
|
||||
|
||||
# Add the default user and authorized ssh key
|
||||
users:
|
||||
- name: ${user}
|
||||
sudo: ALL=(ALL) NOPASSWD:ALL # Grant sudo without password
|
||||
groups: users, wheel
|
||||
shell: /bin/bash
|
||||
ssh_authorized_keys:
|
||||
%{ for key in ssh_authorized_keys ~}
|
||||
- ${key}
|
||||
%{ endfor ~}
|
||||
|
||||
# Optional: Run package upgrades on first boot
|
||||
package_update: true
|
||||
package_upgrade: true
|
||||
|
||||
# Optional: Disable password authentication for SSH
|
||||
ssh_pwauth: false
|
||||
|
||||
# Optional: Install basic packages (useful for debugging or Ansible)
|
||||
packages:
|
||||
- vim
|
||||
- curl
|
||||
- wget
|
||||
- git
|
||||
- python3 # Usually present, but good to ensure for Ansible
|
||||
Loading…
Add table
Add a link
Reference in a new issue