/cloud-skills:on-prem-infrastructure-patternsfrom cloud-skills
Guides designing and operating on-premises, private-cloud, and hybrid infrastructure with VMware vSphere, automated bare-metal provisioning (PXE/MAAS/Redfish), inventory-as-code (IPAM/DCIM), and hybrid connectivity to public cloud.
Ships in cloud-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Not every workload belongs in the public cloud, and not every organization can (or should) migrate everything at once — data residency law, sub-millisecond latency requirements, existing capital investment in depreciating hardware, or genuinely predictable steady-state capacity all make on-premises or private-cloud infrastructure the correct choice for at least part of most large estates. But on-prem infrastructure without the same engineering discipline applied to cloud — inventory as code, IaC- driven provisioning, redundant hybrid connectivity, deliberate workload placement — degenerates into hand-built snowflake servers, spreadsheet inventories that drift from physical reality, and a single point of failure between the data center and everything the business has since moved to the cloud. This skill covers the common virtualization baseline (VMware vSphere), automated bare-metal provisioning, inventory-as-code discipline, and the hybrid connectivity patterns that let on-prem and cloud infrastructure operate as one coherent estate rather than two disconnected islands.
vsphere provider (or the relevant
bare-metal/private-cloud provider) and Ansible ≥ 2.15 for OS/config
management if managing on-prem infrastructure as code — strongly
recommended over console/CLI click-ops past a handful of hosts.*-landing-zone-setup
skills) and a central IP address plan that includes the on-prem CIDR
ranges, not just cloud VPC/VNet ranges.Establish inventory-as-code before touching hardware. Model racks, power circuits, IP subnets, VLANs, and device records in a DCIM/IPAM system (NetBox is the common open-source choice) so physical reality and its digital record never diverge. A minimal NetBox-style device record as data:
device:
name: esx-host-042
site: dc1-rack-14
device_role: virtualization-host
device_type: dell-poweredge-r760
status: active
primary_ip4: 10.20.4.42/24
oob_ip: 10.20.250.42/24 # separate management VLAN
Treat this record as the source of truth that IaC pipelines read from — not a description written after the fact.
Choose a virtualization platform baseline and standardize on it. VMware vSphere (ESXi hosts clustered under vCenter, with vSphere HA for failover and DRS for load balancing) is the common enterprise default; Nutanix AHV, Proxmox VE, or Hyper-V are valid alternatives when licensing cost, hyperconverged-infrastructure preference, or existing Microsoft investment drives the decision. Whichever is chosen, manage cluster configuration as code:
resource "vsphere_compute_cluster" "prod" {
name = "cluster-prod-dc1"
datacenter_id = data.vsphere_datacenter.dc1.id
host_managed = true
drs_enabled = true
drs_automation_level = "fullyAutomated"
ha_enabled = true
ha_admission_control_policy = "resourcePercentage"
}
Automate bare-metal provisioning rather than hand-installing OS images per server. Two common patterns:
curl -k -u "<BMC_USER>:<BMC_PASSWORD>" \
-X POST -H "Content-Type: application/json" \
-d '{"ResetType": "On"}' \
https://<BMC_IP>/redfish/v1/Systems/1/Actions/ComputerSystem.Reset
Configure the OS and baseline agents with Ansible immediately after provisioning — firmware/BIOS version check, NTP, monitoring agent, security baseline (CIS benchmark), and hypervisor join-to-cluster — so every host reaches a known-good state before carrying workloads:
- hosts: new_esx_hosts
tasks:
- name: Verify BIOS/firmware baseline
assert:
that: "ansible_facts['bios_version'] == expected_bios_version"
- name: Join host to vSphere cluster
community.vmware.vmware_host:
cluster: cluster-prod-dc1
esxi_hostname: "{{ inventory_hostname }}"
state: present
Design the network as core/distribution/access or spine-leaf, matching scale: a small single-site data center is well served by a traditional three-tier core/distribution/access design; a larger private cloud or multiple co-located clusters benefit from a non-blocking spine-leaf fabric. Segment with VLANs at minimum: production workload, storage/vMotion, out-of-band management, and a DMZ/edge segment — never share the management VLAN with production workload traffic.
Reserve IP address space centrally, including on-prem ranges, before
connecting to any cloud. The same IPAM discipline covered in
multi-cloud-networking-patterns applies here in reverse: on-prem
CIDR blocks must be reserved and known before a cloud VPC/VNet/VCN is
peered to them, or the connection will fail on first overlap.
Connect to public cloud with a redundant hybrid path, following the same "dedicated connection with VPN failover" pattern used for cross-cloud connectivity:
conn onprem-to-cloud
left=<ON_PREM_GATEWAY_PUBLIC_IP>
leftsubnet=10.20.0.0/16
right=<CLOUD_VPN_GATEWAY_PUBLIC_IP>
rightsubnet=10.50.0.0/16
ike=aes256-sha256-modp2048
esp=aes256-sha256-modp2048
keyexchange=ikev2
auto=start
Confirm both sides agree on IKE/IPsec parameters explicitly rather than relying on auto-negotiation defaults, which differ by vendor.
Decide workload placement with a documented framework, not instinct. For each workload, score against: data residency/ sovereignty requirements, latency tolerance (sub-10ms plant-floor control loops behave very differently from a nightly batch job), existing capex/depreciation runway on already-owned hardware, data gravity (cost/time to move large existing datasets), and whether the workload's demand is genuinely elastic/bursty (cloud's core advantage) or flat and predictable (where owned steady-state capacity is often cheaper). Document the decision and revisit it — it is not permanent.
Capacity-plan with real lead-time headroom. Unlike cloud autoscaling, a bare-metal or vSphere cluster capacity shortfall means weeks-to-months of hardware procurement, not minutes. Track utilization trends and trigger procurement well before a cluster reaches the threshold where DRS/HA admission control starts rejecting placements.
Validate hybrid failover and provisioning automation before relying on them. Run a controlled VPN-failover test (drop the primary dedicated circuit deliberately, confirm traffic reroutes), and provision one canary bare-metal host end to end through the PXE/MAAS + Ansible pipeline to confirm it reaches the expected baseline before trusting the pipeline for a full fleet rollout.
Symptom: A new vSphere host or bare-metal server takes days to bring into service even though procurement delivered it on schedule. Fix: Provisioning was still a manual, per-host process (rack it, console in, click through an OS installer). Automate the PXE/MAAS + Ansible pipeline described above so bringing a racked, cabled, and BMC-reachable host into service is a single pipeline run, not a multi-day manual checklist.
Symptom: Connecting the data center to a new cloud VPC/VNet/VCN fails immediately with an overlapping-CIDR error, or routes silently reach the wrong subnet. Fix: On-prem IP ranges were never centrally reserved alongside cloud ranges — each was planned in isolation. Establish one IPAM source of truth covering on-prem and every cloud account/subscription/ project's address space before any hybrid connection is provisioned; re-IPing a live data-center subnet after the fact is far more disruptive than re-IPing a cloud VPC.
Symptom: A subset of hosts in an otherwise-identical cluster behave differently under load, or intermittently fail in ways that don't reproduce on other hosts. Fix: Firmware/BIOS versions drifted across the fleet because updates were applied ad hoc, host by host, whenever someone happened to notice an available update. Track a single firmware/BIOS baseline version per hardware model, stage updates through a canary subset, and enforce the baseline via the same Ansible assertion shown in step 4.
Symptom: An external audit or incident response finds the BMC/iLO/ iDRAC management interfaces reachable from the general corporate network, several still on default vendor credentials. Fix: The out-of-band management network was never actually isolated — it shared a VLAN (or worse, a flat network) with production or corporate traffic. Move BMC interfaces onto a dedicated management VLAN with no route to the internet, rotate all default credentials immediately, and require the management network to sit behind its own access-controlled jump host.
Symptom: A "cloud burst" plan for seasonal capacity turns out to cost far more, or perform far worse, than expected once actually exercised. Fix: The workload-placement decision assumed cloud capacity would behave like an on-prem extension with negligible cost/latency difference — it didn't account for egress cost on data moved back and forth, or the added latency of round-tripping to a dependency that stayed on-prem. Re-run the placement framework from step 8 honestly for the bursty workload specifically, and if cloud bursting stays the right pattern, keep the dependent data/services it needs already replicated to the cloud side rather than fetched live from on-prem.
Scenario: A manufacturing company runs a single on-prem data center on VMware vSphere. Plant-floor OT systems must stay on-premises for latency and regulatory reasons, but the company's e-commerce storefront needs seasonal burst capacity for a holiday sales spike, and inventory records have drifted badly from what's actually racked.
vsphere provider going forward, not console click-ops, and
bring the existing cluster under Terraform management with an
import pass.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
private-cloud, hybrid-cloud, bare-metal-provisioning, vsphere, data-center, ipam
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin cloud-skills14 skills in this plugin
/aws-landing-zone-setupGuides designing and implementing a multi-account AWS landing zone using AWS Organizations, Control Tower, and Account Factory — including the account/OU hierarchy, Service Control Policies, centralized logging, and baseline guardrails. Use when a user asks to "set up a new AWS account structure", "design an AWS landing zone", "implement AWS Control Tower", "create OUs and SCPs", "bootstrap a multi-account AWS environment", or "onboard a new AWS account into our organization".
/azure-landing-zone-setupGuides designing and implementing an Azure landing zone using Management Groups, subscription democratization, Azure Policy, and the Cloud Adoption Framework (CAF) Landing Zone Accelerator pattern. Use when a user asks to "design an Azure landing zone", "set up Management Groups and subscriptions", "implement Azure Policy guardrails", "onboard a new Azure subscription", "structure our Azure tenant", or "migrate to the CAF enterprise-scale landing zone".
/cloud-access-request-and-iam-lifecycle-managementHandles the everyday operational request to grant, time-box, and later revoke a scoped IAM permission for a contractor, new hire, or a temporary need (e.g. "give the new contractor read-only S3 access for 30 days," "grant break-fix access to prod for this incident," "revoke Priya's access, she left the team," "why does this access request keep getting rejected") — including expiry enforcement and the audit trail a security review will ask for. Use for a single access grant/revoke transaction, not for designing the underlying IAM policy/role structure (see cloud-iam-hardening for that).
/cloud-cost-anomaly-investigationWalks through investigating an unexpected cost spike on this month's cloud bill right now — querying AWS Cost Explorer/CUR, Azure Cost Management, or GCP BigQuery billing export to isolate the specific resource, tag, and team responsible before it becomes a formal FinOps review. Use when a user asks "why did our AWS/Azure/GCP bill jump this week/month," "what's driving this cost anomaly alert," "find what resource caused this spike," or "who do I ask about this spend before the finance review." Distinct from cloud-cost-finops-optimization, which covers the ongoing tagging/rightsizing/commitment program this investigation is a single incident inside of.
/cloud-cost-finops-optimizationGuides establishing cloud cost visibility and reducing spend across AWS, Azure, and GCP through tagging/labeling discipline, rightsizing, commitment-based discounts (Reserved Instances, Savings Plans, Committed Use Discounts), and FinOps showback/chargeback practices. Use when a user asks to "reduce our cloud bill", "set up cost allocation tags", "find idle/oversized resources", "decide between Reserved Instances and Savings Plans", "implement FinOps", "explain why cloud spend went up", or "build a cost dashboard per team".
/cloud-iam-hardeningGuides hardening identity and access management across AWS, Azure, and GCP — least-privilege policy design, eliminating long-lived credentials in favor of federation (OIDC/Workload Identity), break-glass access, and periodic access review. Use when a user asks to "reduce IAM permissions", "remove unused IAM roles", "set up federated/keyless access for CI/CD", "harden our cloud identity posture", "review who has admin access", "implement least privilege", or "get rid of long-lived access keys".
Other plugins' skills for the same job