adding more flavors and nuo recipes
This commit is contained in:
26
recipes/alpine/templates/conf/cloud-init/user-data
Normal file
26
recipes/alpine/templates/conf/cloud-init/user-data
Normal file
@ -0,0 +1,26 @@
|
||||
#cloud-config
|
||||
ssh_pwauth: True
|
||||
user: ${user}
|
||||
password: ${password}
|
||||
chpasswd:
|
||||
expire: False
|
||||
ssh_authorized_keys:
|
||||
%{ for sk in ssh_keys ~}
|
||||
- ${sk}
|
||||
%{ endfor ~}
|
||||
%{ if write_files ~}
|
||||
write_files:
|
||||
%{ for fl in write_files ~}
|
||||
- path: ${fl.path}
|
||||
owner: ${fl.owner}:${fl.group}
|
||||
permissions: 0o${fl.permissions}
|
||||
defer: true
|
||||
content: ${fl.content}
|
||||
%{ endfor ~}
|
||||
%{if runcmd ~}
|
||||
# Work around network interface down after boot
|
||||
runcmd:
|
||||
%{ for cmd in runcmd ~}
|
||||
- ${cmd}
|
||||
%{ endfor ~}
|
||||
%{ endif ~}
|
Reference in New Issue
Block a user