22 lines
446 B
Cheetah
22 lines
446 B
Cheetah
|
#cloud-config
|
||
|
users:
|
||
|
- name: test
|
||
|
plain_text_passwd: test
|
||
|
groups: sudo
|
||
|
sudo: ALL=(ALL) NOPASSWD:ALL
|
||
|
shell: /bin/bash
|
||
|
lock_passwd: false
|
||
|
|
||
|
{{ if ne .InitScriptBase64 "" -}}
|
||
|
write_files:
|
||
|
- path: /root/.cloud-init-user.sh
|
||
|
encoding: b64
|
||
|
content: {{ .InitScriptBase64 }}
|
||
|
owner: root:root
|
||
|
permissions: '0755'
|
||
|
{{ end }}
|
||
|
|
||
|
{{ if ne .InitScriptBase64 "" -}}
|
||
|
runcmd:
|
||
|
- /root/.cloud-init-user.sh
|
||
|
{{ end }}
|