f-34: metadata: update metadata gen files #34
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
63fc305736
commit
883d628bf6
6 changed files with 271 additions and 59 deletions
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
passwd -d root
|
||||
|
|
@ -1,9 +1,17 @@
|
|||
{{- if or .Password .SSHKEY -}}
|
||||
#cloud-config
|
||||
users:
|
||||
- name: syonad
|
||||
lock_passwd: false
|
||||
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
|
||||
shell: /bin/bash
|
||||
{{- if .Password }}
|
||||
lock_passwd: false
|
||||
passwd: "{{ .Password }}"
|
||||
{{- else }}
|
||||
lock_passwd: true
|
||||
{{- end }}
|
||||
{{- if .SSHKEY }}
|
||||
ssh_authorized_keys:
|
||||
- "{{ .SSHKEY }}"
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue