terraform-iaas-api-example/cloud-init.yaml
Mauritz Uphoff a7aae81bf0
All checks were successful
CI / Terraform Format & Validate (push) Successful in 45s
CI / TruffleHog Secrets Scan (push) Successful in 1m3s
cloud init linux user example
2025-06-03 13:47:38 +02:00

13 lines
No EOL
342 B
YAML

#cloud-config
users:
- name: user123
groups: sudo
shell: /bin/bash
sudo: ['ALL=(ALL) NOPASSWD:ALL']
lock_passwd: false
passwd: "$6$/9.2O6RCcNIW9qQf$bFtxM80SahRkCrazkqQlj31/ql7pCAZlO02YCsT9FjvDW2oYQKoMshAYpsIw.GsZ6MHxghYr7UFvbaO.jKNfT/" # hashed version of 'gOh8ahdai4Ohcie!'
chpasswd:
expire: false
ssh_pwauth: true