A second rack
Deploy the compute rack again as a second deployment, and see what each deployment owns.
One design builds every rack in a row. Each rack is its own deployment, and changing one never touches another.
tutorial/compute_rack one design, in the catalogue
├─ rack-r1 rack_name: R1 → owns rack R1 and everything in it
└─ rack-r2 rack_name: R2 → owns rack R2 and everything in itIf you've used Helm, a deployment is a release: one install of a chart, under a name, that you upgrade or uninstall on its own. A Pulumi stack is the same idea.
Deploy it again
- Select Deploy on
tutorial/compute_rack, and choose your NetBox. - Leave New deployment selected and name it
rack-r2. - Set
rack_nametoR2, andsite_slugtoriga-dcas before. - Select Plan.
This plan creates 260 objects, not 271, and deletes nothing. The 11 it doesn't create are the device types, module types, rack type, roles and manufacturers: they already exist, because rack-r1 created them, so rack-r2 adopts them.
New deployment or existing one
A new deployment leaves every other deployment alone. Changing an existing deployment makes NetBox match the design for that deployment, and that includes deleting what it created and the design no longer describes. The deploy page asks which you mean, and suggests a new name that no deployment on that NetBox has.
Apply it
Select Apply Changes. In NetBox, the two racks stand side by side in Riga DC.
See what each owns
Select Deployments in the sidebar. It lists every deployment on every NetBox, with its design, its status and how many objects it owns:
rack-r1owns 271 and created all of them.rack-r2owns 271 too: it created 260 and adopted the 11 types, roles and manufacturers thatrack-r1created. Hover over the count to see the split.site_foundationowns 2, andworld_regionsowns 7.
Open a deployment to see its sessions, the rounds of planning that applied it. Search and filter the list by design, deploy target and status. View deployments on a NetBox under Deploy Targets, or on a design in the Design Catalogue, opens the list filtered to it.
What a deployment owns decides what it may delete later: only what it created, never what it adopted, and never what another deployment still describes. That rule does the work in the chapters that follow. Deployments states it in full.
Next, change the design and watch a server leave rack R2.