refactor(bootstrap): nest network fields under system.network to match main project schema
This commit is contained in:
39
README.md
39
README.md
@@ -108,13 +108,14 @@ all:
|
||||
cpus: 2
|
||||
memory: 4096
|
||||
balloon: 0
|
||||
network: vmbr0
|
||||
ip: 10.0.0.10
|
||||
prefix: 24
|
||||
gateway: 10.0.0.1
|
||||
dns:
|
||||
servers: [1.1.1.1, 1.0.0.1]
|
||||
search: [example.com]
|
||||
network:
|
||||
bridge: vmbr0
|
||||
ip: 10.0.0.10
|
||||
prefix: 24
|
||||
gateway: 10.0.0.1
|
||||
dns:
|
||||
servers: [1.1.1.1, 1.0.0.1]
|
||||
search: [example.com]
|
||||
disks:
|
||||
- size: 40
|
||||
- size: 120
|
||||
@@ -168,26 +169,26 @@ Top-level host install/runtime settings. Use these keys under `system`.
|
||||
| `cpus` | int | `0` | vCPU count |
|
||||
| `memory` | int | `0` | Memory in MiB |
|
||||
| `balloon` | int | `0` | Balloon memory in MiB |
|
||||
| `network` | string | empty | Hypervisor network/bridge |
|
||||
| `vlan` | string/int | empty | VLAN tag |
|
||||
| `ip` | string | empty | Static IP (omit for DHCP) |
|
||||
| `prefix` | int | empty | CIDR prefix for static IP |
|
||||
| `gateway` | string | empty | Default gateway (static only) |
|
||||
| `path` | string | empty | Hypervisor folder/path (libvirt/vmware) |
|
||||
| `packages` | list | `[]` | Additional packages installed post-reboot |
|
||||
| `dns` | dict | see below | DNS configuration |
|
||||
| `network` | dict | see below | Network configuration |
|
||||
| `disks` | list | `[]` | Disk layout (see [Multi-Disk Schema](#45-multi-disk-schema)) |
|
||||
| `user` | dict | see below | User account settings |
|
||||
| `root` | dict | see below | Root account settings |
|
||||
| `luks` | dict | see below | Encryption settings |
|
||||
| `features` | dict | see below | Feature toggles |
|
||||
|
||||
#### `system.dns`
|
||||
#### `system.network`
|
||||
|
||||
| Key | Type | Default | Description |
|
||||
| --------- | ----------- | ------- | --------------------------------------------------- |
|
||||
| `servers` | list/string | `[]` | DNS resolvers; comma-separated string is normalized |
|
||||
| `search` | list/string | `[]` | Search domains; comma-separated string is normalized |
|
||||
| Key | Type | Default | Description |
|
||||
| -------------- | ----------- | ------- | --------------------------------------------------- |
|
||||
| `bridge` | string | empty | Hypervisor network/bridge name |
|
||||
| `vlan` | string/int | empty | VLAN tag |
|
||||
| `ip` | string | empty | Static IP (omit for DHCP) |
|
||||
| `prefix` | int | empty | CIDR prefix for static IP |
|
||||
| `gateway` | string | empty | Default gateway (static only) |
|
||||
| `dns.servers` | list/string | `[]` | DNS resolvers; comma-separated string is normalized |
|
||||
| `dns.search` | list/string | `[]` | Search domains; comma-separated string is normalized |
|
||||
|
||||
#### `system.user`
|
||||
|
||||
@@ -386,7 +387,7 @@ To protect sensitive information such as passwords, API keys, and other confiden
|
||||
|
||||
- For virtual installs, `system.cpus`, `system.memory`, and `system.disks[0].size` are required and validated.
|
||||
- For physical installs, sizing is derived from the detected install drive; set installer access (`ansible_user`/`ansible_password`) when the installer environment differs from the prompted user credentials.
|
||||
- `system.dns.servers` and `system.dns.search` accept either YAML lists or comma-separated strings.
|
||||
- `system.network.dns.servers` and `system.network.dns.search` accept either YAML lists or comma-separated strings.
|
||||
- `hypervisor.type` selects backend-specific provisioning and cleanup behavior.
|
||||
- Guest tools are selected automatically by hypervisor: `qemu-guest-agent` for `libvirt`/`proxmox`, `open-vm-tools` for `vmware`.
|
||||
- With `system.luks.method: tpm2` on virtual installs, the virtualization role enables a TPM2 device where supported (libvirt/proxmox/vmware).
|
||||
|
||||
Reference in New Issue
Block a user