Linux/Cloud-init: Difference between revisions
Appearance
< Linux
Created page with "== Links == * https://www.jimangel.io/posts/automate-ubuntu-22-04-lts-bare-metal/ * https://ubuntu.com/server/docs/install/autoinstall-reference Category:Linux/Deployment Category:Linux" |
mNo edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== Cloud-Init to bare metal with USB sticks == | |||
* Prepare 2x USB sticks | |||
** Ubuntu Server standard bootable USB | |||
** FAT32, name "CIDATA" | |||
* Boot with both USB sticks plugged in | |||
<br> | |||
* CIDATA: | |||
:* G:\meta-data (empty file) | |||
<blockquote> | |||
<pre> | |||
</pre> | |||
</blockquote> | |||
:* G:\user-data | |||
<blockquote> | |||
<pre> | |||
#cloud-config | |||
autoinstall: | |||
version: 1 | |||
identity: | |||
hostname: edgeserver | |||
password: <passwdhash> # mkpasswd --method=SHA-512 | |||
username: marcluer | |||
kernel: | |||
package: linux-generic-hwe-22.04 | |||
apt: | |||
geoip: true | |||
keyboard: | |||
layout: de | |||
toggle: null | |||
variant: nodeadkeys | |||
locale: en_US.UTF-8 | |||
source: | |||
id: ubuntu-server-minimal | |||
ssh: | |||
allow-pw: true | |||
authorized-keys: [] | |||
install-server: true | |||
storage: | |||
layout: | |||
name: direct | |||
updates: security | |||
late-commands: | |||
# shut-down the host after copying completed | |||
- shutdown -h now | |||
user-data: | |||
timezone: Europe/Berlin | |||
</pre> | |||
</blockquote> | |||
== Links == | == Links == | ||
* https://www.jimangel.io/posts/automate-ubuntu-22-04-lts-bare-metal/ | * https://www.jimangel.io/posts/automate-ubuntu-22-04-lts-bare-metal/ | ||
Latest revision as of 20:56, 26 November 2023
Cloud-Init to bare metal with USB sticks
- Prepare 2x USB sticks
- Ubuntu Server standard bootable USB
- FAT32, name "CIDATA"
- Boot with both USB sticks plugged in
- CIDATA:
- G:\meta-data (empty file)
- G:\user-data
#cloud-config
autoinstall:
version: 1
identity:
hostname: edgeserver
password: <passwdhash> # mkpasswd --method=SHA-512
username: marcluer
kernel:
package: linux-generic-hwe-22.04
apt:
geoip: true
keyboard:
layout: de
toggle: null
variant: nodeadkeys
locale: en_US.UTF-8
source:
id: ubuntu-server-minimal
ssh:
allow-pw: true
authorized-keys: []
install-server: true
storage:
layout:
name: direct
updates: security
late-commands:
# shut-down the host after copying completed
- shutdown -h now
user-data:
timezone: Europe/Berlin