You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A comprehensive Python framework for automating on-premises infrastructure operations including VM provisioning, network configuration, patching, backup validation, capacity management, and incident remediation.
Features
1. VMware VM Provisioning
Automated VM creation from templates
VM cloning and lifecycle management
Snapshot management
Hardware reconfiguration (CPU, memory, disk)
PowerCLI integration for bulk operations
2. Network Automation
VLAN creation and management
Firewall rule configuration
Interface configuration
Static routing
Configuration backup and restore
Multi-vendor support (Cisco, Juniper, Palo Alto, Fortinet)
3. Automated Patching
Windows patching via WSUS/Windows Update
Linux patching (RHEL, CentOS, Ubuntu, SUSE)
Network device firmware updates
Maintenance window scheduling
Pre-patch snapshots and rollback capability
4. Backup Validation
Automated recovery testing (SureBackup-style)
Instant VM recovery validation
File-level recovery testing
Backup chain verification
Compliance reporting
Multi-vendor support (Veeam, Commvault, NetBackup)
5. Capacity Management
Real-time capacity monitoring
Storage and compute forecasting
Threshold alerting
VM rightsizing recommendations
Orphaned resource identification
Capacity reports and trends
6. Incident Remediation
Automated service restarts
VM restart and recovery
Service failover
Traffic rerouting
Runbook execution
Incident tracking and escalation
Installation
# Clone the repository
git clone https://github.com/example/onprem-automation.git
cd onprem-automation
# Create virtual environment
python -m venv venv
source venv/bin/activate # Linux/Mac# or
.\venv\Scripts\activate # Windows# Install dependencies
pip install -e .# For full installation with all optional dependencies
pip install -e ".[full,api,dev]"
# List available modules
onprem-auto list
# Run health checks
onprem-auto health
# VMware operations
onprem-auto vmware provision my-new-vm -t rhel8-template --cpus 4 --memory 8
onprem-auto vmware list --templates
# Network operations
onprem-auto network vlan core-sw-01 100 -n "Production" -d "Production VLAN"
onprem-auto network firewall fw-01 -n "Allow-Web" -a permit -s 10.0.0.0/8 -d any -p tcp --port 443
# Patching
onprem-auto patch scan server01.example.com
onprem-auto patch install server01.example.com
onprem-auto patch server server01.example.com # Full workflow# Backup validation
onprem-auto backup status -j "Production-VMs-Daily"
onprem-auto backup test my-critical-vm -t application_test
onprem-auto backup compliance
# Capacity management
onprem-auto capacity status -t storage
onprem-auto capacity forecast "Production-Datastore-01" --days 90
onprem-auto capacity report -t detailed
# Incident remediation
onprem-auto remediate restart server01.example.com httpd
onprem-auto remediate failover web-service --primary server01 --secondary server02
onprem-auto remediate incidents --status open
Generic Action Execution
# Run any module action with parameters
onprem-auto run vmware provision_vm name=test-vm template=rhel8-template num_cpus=4
onprem-auto run network create_vlan device=switch01 vlan_id=200 name=Development
onprem-auto run capacity get_recommendations