fix: users on vm's

This commit is contained in:
Ditmar Visser
2025-06-05 20:24:29 +00:00
parent 153dbd26b5
commit afcc220929
2 changed files with 7 additions and 3 deletions

View File

@ -3,6 +3,10 @@ local-hostname: ${hostname}
users:
- name: testuser
ssh-authorized-keys:
- ${azure_ssh_public_key}
groups: sudo
shell: /bin/bash
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
ssh_authorized_keys:
- ${azure_ssh_public_key}
lock_passwd: true
passwd: ""

View File

@ -18,7 +18,7 @@ write_files:
content: |
Host azurevm
HostName ${azure-vm-ip}
User iac
User testuser
IdentityFile ~/.ssh/azure
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null