feat: add cloud-init and virt-customize method

This commit is contained in:
Matthieu Bessat 2024-06-21 11:28:42 +02:00
parent 32bf78edbe
commit 30c76bf9c5
17 changed files with 119 additions and 0 deletions

View file

@ -0,0 +1 @@
out

View file

@ -0,0 +1,2 @@
instance-id: mbessinfra/sandbox03
local-hostname: sandbox03

View file

@ -0,0 +1,22 @@
#cloud-config
hostname: jpplandhost
groups:
- jppland
users:
- default
- calyjohn
- name: mbess
passwd: "$6$QQuYYEMEG0bJf7iH$mhFeXl10jSQhFO8ltMAi3CtoGLOz5tPdnEBTcp.4JzS5mnBbpANvm9s.VQFMvWq8nfzgzdDZMGr1hnZLGVd2V." #root
sudo: ALL=(ALL) NOPASSWD:ALL
groups: sudo
shell: /bin/bash
lock_passwd: false
ssh_authorized_keys:
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBeNeE0gk6mO0Bz9dDvKQrhA2Oo7x05FicCQJivxqIyi sandbox"
write_files:
- encoding: gzip
content: !!binary |
H4sIAIDb/U8C/1NW1E/KzNMvzuBKTc7IV8hIzcnJVyjPL8pJ4QIA6N+MVxsAAAA=
path: /usr/bin/hello
permissions: '0755'