- Rewrite AGENTS.md: DB as source of truth, MCP knowledge tools, archive refs - Fix OIKOS.md: seeds/ paths, remove Python-era notes, update deployment status - Fix commands.md, agent-enrollment.md: archive/knowledge/ links - Fix all SKILL.md files: remove hosts/*.yaml refs, point to inventory.yaml - Fix HERMES.md, schema.md, page-templates.md, llm-wiki.md: update paths - Fix bootstrap.sh: identity check reads inventory.yaml - Fix README.md, cutover-checklist.md: stale wiki references - Move convert-wiki.py to archive/ (one-shot done)
34 lines
1.4 KiB
Markdown
34 lines
1.4 KiB
Markdown
---
|
|
name: lifecycle-provision-node
|
|
risk_class: config_mutation
|
|
inputs: [node_name, kind, storage_pool]
|
|
verification: "grep 'state: provisioning' inventory.yaml"
|
|
docs_update_checklist: [doc_page_stub]
|
|
transition: "planned -> provisioning"
|
|
---
|
|
|
|
# Lifecycle: provision a node
|
|
|
|
Per [seeds/ontology.yaml](../../../seeds/ontology.yaml) `lifecycle.transitions`.
|
|
Policy note: `provisioning` nodes get a lifecycle override —
|
|
`config_mutation` actions downgrade to `reversible_low` because nothing
|
|
depends on the node yet (see `seeds/policy.yaml` `lifecycle_overrides`).
|
|
|
|
Requires (from ontology): inventory entry, IP reserved, storage pool
|
|
chosen, doc page stub.
|
|
|
|
1. Create the LXC/VM on its target Proxmox host (`pct create` /
|
|
`qm create`), choosing the storage pool deliberately — record it as
|
|
the `storage:` field once populated (Week 1 schema; not yet backfilled
|
|
for existing nodes).
|
|
2. Add the inventory entry: `homelab client add <name>` for anything that
|
|
will run the `homelab` CLI, or a direct `hosts.<name>:` block with
|
|
`state: provisioning`, `kind`, `host`, `pve_id`, `lan_ip` for
|
|
infra-only LXCs that won't self-enroll.
|
|
3. Stub the doc page (`containers/<pve_id>-<name>.md` or
|
|
`vms/<pve_id>-<name>.md`) — even a one-line "provisioning, see plan X"
|
|
is enough to satisfy the transition requirement.
|
|
4. Reserve the IP in DNS/DHCP notes if it's a fixed LAN address.
|
|
|
|
Next: [lifecycle-activate-node.md](../lifecycle-activate-node/SKILL.md).
|