feat: add azure private key to esxi vm
This commit is contained in:
@@ -6,6 +6,26 @@ users:
|
||||
shell: /bin/bash
|
||||
sudo: ['ALL=(ALL) NOPASSWD:ALL']
|
||||
|
||||
write_files:
|
||||
- path: /home/skylab/.ssh/azure
|
||||
content: |
|
||||
${azure-private-key}
|
||||
permissions: '0600'
|
||||
owner: skylab:skylab
|
||||
defer: true
|
||||
|
||||
- path: /home/skylab/.ssh/config
|
||||
content: |
|
||||
Host azurevm
|
||||
HostName ${azure-vm-ip}
|
||||
User adminuser
|
||||
IdentityFile ~/.ssh/azure
|
||||
StrictHostKeyChecking no
|
||||
UserKnownHostsFile=/dev/null
|
||||
permissions: '0600'
|
||||
owner: skylab:skylab
|
||||
defer: true
|
||||
|
||||
packages:
|
||||
- wget
|
||||
- ntpdate
|
||||
|
Reference in New Issue
Block a user