28 lines
615 B
Plaintext
28 lines
615 B
Plaintext
#cloud-config
|
|
users:
|
|
- name: testuser
|
|
ssh-authorized-keys:
|
|
- ${skylab-ssh-public-key}
|
|
shell: /bin/bash
|
|
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
|
|
|
|
write_files:
|
|
- path: /home/testuser/.ssh/azure
|
|
content: |
|
|
${azure-ssh-private-key}
|
|
permissions: "0600"
|
|
owner: testuser:testuser
|
|
defer: true
|
|
|
|
- path: /home/testuser/.ssh/config
|
|
content: |
|
|
Host azurevm
|
|
HostName ${azure-vm-ip}
|
|
User iac
|
|
IdentityFile ~/.ssh/azure
|
|
StrictHostKeyChecking no
|
|
UserKnownHostsFile=/dev/null
|
|
permissions: "0600"
|
|
owner: testuser:testuser
|
|
defer: true
|