provision-with-maas
Skill1.5k starsChanged 5 months agoBSD-3-ClauseView on GitHub
Provision or reinstall bare-metal servers and test VMs through Canonical MAAS, map deployed machines into DeepOps Ansible inventory with MAAS tags, validate access, or release them safely. Use when operating DeepOps with a MAAS-owned machine lifecycle.
- Reads credentials
Trending
Quiet since June.about the whole repository
Who's talking about NVIDIA/deepops
- kubeflow/kubeflow“Add support to display different GPU types, specifically NVIDIA Multi-Instance GPUs”GitHub · Oct 8, 2020 · 6 reactions
- kubeflow/website“Really need a Kubeflow Ecosystem Section to the Website, (Note list is attached I found who are in the …”GitHub · Jun 28, 2020 · 4 reactions
- PyTorchKR/landscape“[Add] NVIDIA DeepOps (NVIDIA/deepops)”GitHub · Jun 6, 2026
- glotzerlab/hoomd-blue“Allow dynamic loading of slurm_conf on Anvil.”GitHub · Jul 19, 2024
- hashicorp/vagrant“Error with provider libvirt”GitHub · Mar 24, 2024
The biggest 5 of 23 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 23
Talked about on GitHub (23 times).
On GitHub · 23
- Oct 8, 2020Add support to display different GPU types, specifically NVIDIA Multi-Instance GPUs — kubeflow/kubeflow6 reactions · 13 comments
- Jun 28, 2020Really need a Kubeflow Ecosystem Section to the Website, (Note list is attached I found who are in the Ecosystem) — kubeflow/website4 reactions · 11 comments
- Jun 6, 2026[Add] NVIDIA DeepOps (NVIDIA/deepops) — PyTorchKR/landscape0 reactions
- Jul 19, 2024Allow dynamic loading of slurm_conf on Anvil. — glotzerlab/hoomd-blue0 reactions
- Mar 24, 2024Error with provider libvirt — hashicorp/vagrant0 reactions · 1 comment
18 more on GitHub
- Aug 13, 2023Set HPA(Horizontal Pod Autoscaler) of Triton Inference Server with Prometheus metric — MrSyee/SAM-remove-background0 reactions
- Apr 4, 2023Configuration issues with containerd failing Kubespray install with "unknown service runtime.v1alpha2.ImageService" error — kubernetes-sigs/kubespray0 reactions · 6 comments
- Nov 10, 2022Prometheus metric gpu_capacity is not found. — NTHU-LSALAB/KubeShare0 reactions · 4 comments
- Feb 26, 2022SLURM gpus-per-task issue — NVIDIA/pyxis0 reactions · 5 comments
- Sep 5, 2021feature(GPU): kubespray install NVIDIA GPU — k8sli/kubeplay0 reactions · 1 comment
- Aug 12, 2021Ensure systemd unit reloaded when restarting — NVIDIA/ansible-role-nvidia-docker0 reactions
- May 18, 2021Super huge log messages from journald - misconfigured filter_concat? — kokuwaio/helm-charts0 reactions · 2 comments
- Mar 22, 2021Add var to allow skipping reload of Docker daemon — NVIDIA/ansible-role-nvidia-docker0 reactions
- Dec 18, 2020Multiple Pods stucks in CrashLoopBackOff — kubeflow/kubeflow0 reactions · 9 comments
- Oct 19, 2020Update PPA URL — DeepOps/ansible-maas0 reactions
- Oct 7, 2020enroot-nsenter: failed to create user namespace: Invalid argument — NVIDIA/enroot0 reactions · 2 comments
- Aug 20, 2020Istio Dex Manifest v1.0.2 is "Unable to fetch Nodes", centraldashboard throwing 504 — kubeflow/community-distribution0 reactions · 2 comments
- Jul 16, 2020Multi-GPU workloads hang in Jupyter Notebooks launched through Kubeflow — kubeflow/kubeflow0 reactions · 3 comments
- Jun 16, 2020update_ood_portal may not work on Ubuntu — OSC/ood-ansible0 reactions · 1 comment
- May 18, 2020details = "failed to connect to all addresses" in "helm" module — ansible/ansible0 reactions · 8 comments
- Jan 22, 2020Failed to fetch https://s3-eu-west-1.amazonaws.com/coreos-charts/stable/index.yaml : 403 Forbidden — prometheus-operator/kube-prometheus0 reactions · 4 comments
- Sep 14, 2019ambassador always CrashLoopBackOff — kubeflow/kubeflow0 reactions · 8 comments
- Aug 9, 2019"Copy kubectl binary to ansible host" sometimes fails with memory error due to known issue with 'fetch' module. — kubernetes-sigs/kubespray0 reactions · 8 comments
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- deploy-airgappedSkill
- deploy-k8s-gpu-clusterSkill
- deploy-slurm-clusterSkill
- diagnose-driver-installSkill
- validate-gpu-clusterSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Keep MAAS authoritative for machine lifecycle, power, PXE/DHCP, OS images, commissioning, deployment, release, pools, zones, and tags.
- Distinctive: line 21
Ensure the provisioning VLAN can safely use MAAS DHCP, with a reserved dynamic range that does not overlap site addresses.
- Distinctive: line 27
Use Ubuntu 24.04 with the MAAS 3.7 repository for a new controller, or the MAAS 3.5 repository while the controller remains on Ubuntu 22.04.
- Very specific: line 41
If DeepOps must install the MAAS controller, set maas_adminusers, maas_dns_domain, maas_region_controller, maas_region_controller_url, and …
- Distinctive: line 89
Use these canonical role tags:
- Distinctive: line 112
Before applying the profile, this command removes the canonical Kubernetes and Slurm test tags from every listed target.
- Distinctive: line 124
Run only after reviewing the exact targets and accepting a reinstall of all of them:
- Very specific: line 132
Use --os jammy for Ubuntu 22.04.
- Very specific: line 189
Use --tags-only to change between the built-in Kubernetes and Slurm layouts without reinstalling.
- Distinctive: line 194
Treat a rerun of the deploy command as a fresh reinstall, not an idempotent resume.
- Very specific: line 228
MAAS connection error: verify MAAS_API_URL and reachability from the control machine. - Very specific: line 234
Inventory is valid but a target is absent: only Deployed machines with a non-empty hostname are included.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Provision with MAAS
Keep MAAS authoritative for machine lifecycle, power, PXE/DHCP, OS images, commissioning, deployment, release, pools, zones, and tags. Use DeepOps to install a controller, request explicit deploy/tag/release operations, and turn deployed machine tags into Ansible inventory.
Preconditions
- Work from the DeepOps repository root on a prepared Ansible control machine.
- Confirm that every target is authorized for reinstallation. A deploy erases
its installed OS, and
maas_deploy.shreleases every listed deployed machine before installing it again. - Provide a MAAS 3.x controller reachable through its REST API and an OAuth1
API key in
consumer_key:token_key:token_secretformat. - Ensure the provisioning VLAN can safely use MAAS DHCP, with a reserved dynamic range that does not overlap site addresses. Targets must PXE boot on that network.
- Configure target power control in MAAS, or arrange manual power cycles.
Commission each target to
Ready, sync the requested Ubuntu image, and add an SSH public key that the operator can use after deployment. - Use Ubuntu 24.04 with the MAAS 3.7 repository for a new controller, or the MAAS 3.5 repository while the controller remains on Ubuntu 22.04.
Procedure
Prepare MAAS and DeepOps
Install DeepOps dependencies and create the private configuration if this checkout has not been prepared:
./scripts/setup.shIf DeepOps must install the MAAS controller, set
maas_adminusers,maas_dns_domain,maas_region_controller,maas_region_controller_url, andmaas_repoinconfig/group_vars/all.yml. Review the inventory, then limit the controller playbook to exactly that host:ansible-playbook -l <maas-controller-host> playbooks/provisioning/maas.ymlSkip this step when using an existing MAAS controller.
Edit
config/maas-inventory.yml, whichscripts/setup.shcreates fromconfig.example/maas-inventory.yml:api_url: "http://maas-server:5240/MAAS/api/2.0" api_key: "consumer_key:token_key:token_secret" ssh_user: "ubuntu" network: "192.0.2" ssh_bastion: "user@bastion-host" machines: "node01 node02 node03"Omit
networkfor first-address selection andssh_bastionfor direct access. Setmachinesto the exact MAAS hostnames this operation owns; do not rely on the script's test-VM defaults. Environment variables override the file.MAAS_INVENTORY_CONFIGselects another inventory config for the Python inventory script; the deploy script always reads the repo-local file but acceptsMAAS_API_URL,MAAS_API_KEY,MAAS_MACHINES,MAAS_SSH_USER,MAAS_NETWORK, and SSH proxy overrides.Review the resolved targets and their current state before any mutation:
MAAS_MACHINES="node01 node02 node03" ./scripts/maas_deploy.sh --statusRequire every intended hostname to appear. Check status, IP, OS, and tags; stop if an unexpected machine is present.
Map MAAS tags to inventory
scripts/maas_inventory.py includes only machines whose MAAS status code is
6 (Deployed). It uses each hostname as the Ansible host and maps every
MAAS tag to an Ansible group. Tag leaf groups; the script creates the DeepOps
parent/child relationships.
Use these canonical role tags:
| Cluster | MAAS leaf tags |
| Kubernetes | kube_control_plane, kube_node, etcd |
| Slurm | slurm-master, slurm-node, optionally slurm-nfs, slurm-cache, slurm-metric, slurm-login |
Legacy kube-master, kube-node, and k8s-cluster tags are accepted and
aliased to canonical group names. The deploy helper does not remove these
legacy tags when applying a profile, so remove them manually in MAAS before a
role change. Otherwise a target can remain in Kubernetes inventory groups after
switching to the Slurm profile. Other tags become same-named Ansible groups.
For the built-in profiles, ordering is significant: the first hostname in
machines becomes the Kubernetes control-plane/etcd node or Slurm master;
the remaining hosts become Kubernetes or Slurm workers. Apply or change a
profile without reinstalling:
MAAS_MACHINES="node01 node02 node03" \
./scripts/maas_deploy.sh --profile k8s --tags-onlyBefore applying the profile, this command removes the canonical Kubernetes and Slurm test tags from every listed target. It does not remove legacy Kubernetes tags or unrelated MAAS tags. Use MAAS directly for a custom role layout, for example:
maas admin tag update-nodes slurm-master add=<node01-system-id>
maas admin tag update-nodes slurm-node add=<node02-system-id> add=<node03-system-id>Deploy
Run only after reviewing the exact targets and accepting a reinstall of all of them:
MAAS_MACHINES="node01 node02 node03" \
./scripts/maas_deploy.sh --os noble --profile slurmUse --os jammy for Ubuntu 22.04. The default is noble. The script:
- Resolves every hostname to a MAAS system ID and stops if any is absent.
- Releases deployed machines and waits up to 600 seconds for every machine to
reach
Ready. - Requests deployment of the selected Ubuntu series and waits up to 600
seconds for every machine to reach
Deployed. - Selects an IP matching
network, falling back to the first MAAS address, and waits up to 120 seconds for SSH asssh_user. - Reports
lsb_release -ds, then clears known test tags and applies the selected profile.
For manual power control, perform each power-on requested by MAAS while the script is waiting.
Validate after provisioning
Confirm MAAS state, selected IPs, OS, and tags:
MAAS_MACHINES="node01 node02 node03" ./scripts/maas_deploy.sh --statusRequire every target to show
Deployed, the requested Ubuntu release, a usable target-network IP, and the intended role tags.Inspect the dynamic inventory before running a cluster playbook:
./scripts/maas_inventory.py --list ansible-inventory -i scripts/maas_inventory.py --graphThis inventory is controller-wide: it includes every
Deployedmachine visible through the configured MAAS API, not only the hostnames inmachinesorMAAS_MACHINES. Require each operation-owned target to be present with the expected leaf groups and correct first-host/worker split; unrelated deployed machines may also appear inall. Inspectansible_hostandmaas_*host variables in--listwhen anything is unexpected.Prove Ansible can reach the operation-owned machines only:
ansible -i scripts/maas_inventory.py 'node01:node02:node03' -m pingBuild the host pattern from the same reviewed hostname list used for the deploy or tag operation; do not target
allon a shared controller. RequireSUCCESSand"ping": "pong"for every operation-owned target. This validates provisioning and control-plane access; it does not validate a Slurm or Kubernetes deployment.
Reruns and role changes
- Rerun
--status, inventory inspection, and Ansible ping freely; they do not request lifecycle changes. - Use
--tags-onlyto change between the built-in Kubernetes and Slurm layouts without reinstalling. Recheck hostname ordering first because it selects the control-plane or master node. Inspect each target for legacykube-master,kube-node, ork8s-clustertags and remove them manually in MAAS before the change;--tags-onlydoes not clear them. - Treat a rerun of the deploy command as a fresh reinstall, not an idempotent resume. It releases all listed deployed machines, including machines that succeeded during a partially failed multi-machine run.
- A released machine that is still commissioned and
Readycan be deployed again without commissioning it again.
Cleanup
Release only the exact machines owned by the operation:
MAAS_MACHINES="node01 node02 node03" ./scripts/maas_deploy.sh --releaseRequire All machines released. and verify --status shows Ready. Released
machines disappear from dynamic inventory because it includes only Deployed
machines. Release does not clear their MAAS tags; remove residual role tags in
MAAS separately if the machines are being reassigned, after confirming tag
ownership.
Failure branches
- Inventory returns only an empty
_metaobject without an error: the configuration is missing or still contains example placeholders. Populateapi_urlandapi_key, or set the matching environment variables, then rerun--list. ERROR: MAAS_API_URL not configuredorERROR: MAAS_API_KEY not configured: populate the missing deploy configuration or its environment override. The deploy helper does not use the inventory helper's graceful empty-inventory behavior.MAAS API error: 401: replace or correctMAAS_API_KEY. If the deploy helper reports that the key must useconsumer_key:token_key:token_secret, correct its three-part format before making another request.MAAS connection error: verifyMAAS_API_URLand reachability from the control machine. Do not continue to lifecycle operations until inventory or status reads succeed.Machine '<name>' not found in MAAS: comparemachinesorMAAS_MACHINESwith MAAS hostnames. Correct the target list; do not replace it with a broader list.- Inventory is valid but a target is absent: only
Deployedmachines with a non-empty hostname are included. Check--status; finish deployment, or expect a released/Readymachine to remain absent. - Inventory chooses the wrong address or SSH times out after 120 seconds:
set
network/MAAS_NETWORKto the target subnet, verifyssh_user, the imported MAAS SSH key, andssh_bastionor proxy settings, then rerun the read-only ping checks. A machine with no MAAS address cannot yield a usableansible_host. - A machine does not reach
ReadyorDeployedwithin 600 seconds: inspect its MAAS state and events. For manual power, perform the requested power cycle. If PXE never begins, verify PXE boot and that DHCP is enabled on the correct VLAN with a non-overlapping dynamic range. Rerun deployment only after deciding whether reinstalling every listed target is acceptable. --tags-onlyfails immediately: supply--profile k8sor--profile slurm; other profile names are rejected. If groups are still wrong, inspect tag names and target ordering. Remove legacykube-master,kube-node, andk8s-clustertags manually in MAAS because reapplying a profile will not clear them; then reapply the intended profile and regenerate inventory.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

