https://github.com/wizzense/aitherzero
Standalone PowerShell automation framework for OpenTofu/Terraform infrastructure management with comprehensive testing and modular architecture
https://github.com/wizzense/aitherzero
automation cross-platform devops hyper-v infrastructure-automation lab-management opentofu powershell terraform
Last synced: 9 months ago
JSON representation
Standalone PowerShell automation framework for OpenTofu/Terraform infrastructure management with comprehensive testing and modular architecture
- Host: GitHub
- URL: https://github.com/wizzense/aitherzero
- Owner: wizzense
- License: mit
- Created: 2025-06-25T16:22:14.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-07-09T20:34:15.000Z (9 months ago)
- Last Synced: 2025-07-09T20:55:42.311Z (9 months ago)
- Topics: automation, cross-platform, devops, hyper-v, infrastructure-automation, lab-management, opentofu, powershell, terraform
- Language: PowerShell
- Size: 446 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Security: security-test-report.json
Awesome Lists containing this project
README
# AitherZero Infrastructure Automation
**๐ Standalone PowerShell automation framework** for OpenTofu/Terraform infrastructure management with comprehensive testing, modular architecture, and AI-powered automation.
[](https://github.com/wizzense/AitherZero/actions)
[](https://github.com/wizzense/AitherZero/actions/workflows/comprehensive-report.yml)
[](https://github.com/PowerShell/PowerShell)
[](https://opentofu.org/)
[](LICENSE)
[](CONTRIBUTING.md)
## ๐ [View Live Dashboard & Reports](https://wizzense.github.io/AitherZero/)
**Automated reports updated daily:** https://wizzense.github.io/AitherZero/
### ๐ Available Reports:
- **[Comprehensive Project Report](https://wizzense.github.io/AitherZero/aitherZero-comprehensive-report.html)** - Full project health analysis with test coverage, documentation audit, and code quality metrics
- **[Feature & Dependency Map](https://wizzense.github.io/AitherZero/feature-dependency-map.html)** - Interactive visualization of module relationships
- **[CI Dashboard](https://wizzense.github.io/AitherZero/comprehensive-ci-dashboard.html)** - Latest CI/CD results and trends
- **[Executive Summary](https://wizzense.github.io/AitherZero/executive-summary.md)** - High-level project status for stakeholders
## โก Ultra-Simple Installation (30 seconds)
> ๐ฏ **Get AitherZero running with a single command** - compatible with PowerShell 5.1+ on Windows/Linux/macOS
### ๐ **New Users: 5-Minute Quick Start Guide**
**๐ [**QUICK_START_5MIN.md**](QUICK_START_5MIN.md) - Complete beginner-friendly guide that gets you from zero to running AitherZero in 5 minutes!**
```powershell
# Windows - One command downloads and runs AitherZero:
iex (irm "https://raw.githubusercontent.com/wizzense/AitherZero/main/bootstrap.ps1")
# Linux/macOS - One command downloads and runs AitherZero:
curl -sSL https://raw.githubusercontent.com/wizzense/AitherZero/main/bootstrap.sh | bash
```
### ๐ฆ **Profile Selection During Install**
The bootstrap will prompt you to choose your profile:
- **Minimal** (5-8 MB): Core infrastructure deployment only
- **Standard** (15-25 MB): Production-ready automation (recommended)
- **Development** (35-50 MB): Complete contributor environment
### ๐ค **Automated Installation**
For CI/CD or automated deployment:
```powershell
# Windows - Automated with specific profile
$env:AITHER_PROFILE='minimal'; iex (irm "https://raw.githubusercontent.com/wizzense/AitherZero/main/bootstrap.ps1")
# Linux/macOS - Automated with specific profile
AITHER_PROFILE=standard curl -sSL https://raw.githubusercontent.com/wizzense/AitherZero/main/bootstrap.sh | bash
```
### ๐ **What This Command Does**
1. โ
**Profile Selection** - Choose minimal, standard, or development
2. โ
**Downloads** the appropriate AitherZero package from GitHub
3. โ
**Extracts** it to your directory (or custom path)
4. โ
**Auto-starts** the setup process
5. โ
**Cross-platform** - works on Windows, Linux, and macOS
6. โ
**PowerShell Requirements** - 7.0+ for core features, 5.1+ for bootstrap only
> ๐ก **That's it!** No complex setup, no manual downloads, intelligent profile selection.
## ๐ฏ Quick Start After Installation
### ๐ **SINGLE ENTRY POINT** - Works on All Platforms
There is **only ONE way** to start AitherZero (no confusion!):
```powershell
# โ
THE ONLY WAY TO START AITHERZERO:
./Start-AitherZero.ps1
# โ
First time? Run setup:
./Start-AitherZero.ps1 -Setup
# โ
Get help:
./Start-AitherZero.ps1 -Help
```
**๐ก Smart Features:**
- โ
**Auto-detects PowerShell version** - works with PowerShell 5.1+ and 7+
- โ
**Cross-platform** - same command on Windows, Linux, macOS
- โ
**Auto-launches PowerShell 7** if available
- โ
**Clear installation guidance** if PowerShell 7 is needed
- โ
**No wrappers or multiple scripts** - one entry point
### ๐ First Time? Run Setup!
```powershell
# Interactive setup wizard
./Start-AitherZero.ps1 -Setup
# Setup with specific profile
./Start-AitherZero.ps1 -Setup -InstallationProfile developer
```
### Common Launch Options
```powershell
# Interactive mode (default) - shows menu
./Start-AitherZero.ps1
# Run specific modules
./Start-AitherZero.ps1 -Scripts "LabRunner"
./Start-AitherZero.ps1 -Scripts "BackupManager,OpenTofuProvider"
# Automated mode
./Start-AitherZero.ps1 -Auto
# Get help
./Start-AitherZero.ps1 -Help
```
## ๐ Documentation Index
### ๐ **Getting Started**
- **[Quick Start Guide](QUICKSTART.md)** - Fast setup and basic usage
- **[Setup Wizard Guide](aither-core/modules/SetupWizard/README.md)** - Interactive setup walkthrough
- **[Installation Profiles](configs/carousel/README.md)** - Profile selection and configuration
### ๐ **Module Documentation**
- **[Module Architecture](aither-core/modules/README.md)** - 28+ specialized modules overview
- **[Configuration Management](aither-core/modules/ConfigurationCarousel/README.md)** - Multi-environment config system
- **[Infrastructure Deployment](aither-core/modules/OpenTofuProvider/README.md)** - OpenTofu/Terraform automation
- **[Git Workflow Automation](aither-core/modules/PatchManager/README.md)** - Automated patch and release management
- **[System Monitoring](aither-core/modules/SystemMonitoring/README.md)** - Real-time system monitoring and alerting
- **[Security Automation](aither-core/modules/SecurityAutomation/README.md)** - Enterprise security hardening
### ๐ ๏ธ **Development & Contributing**
- **[Contributing Guide](CONTRIBUTING.md)** - How to contribute to AitherZero
- **[GitHub Automation](.github/README.md)** - CI/CD workflows and release process
- **[Testing Framework](aither-core/modules/TestingFramework/README.md)** - Testing patterns and validation
- **[Development Environment](aither-core/modules/DevEnvironment/README.md)** - Development setup and tools
### ๐งช **Testing & Validation**
- **[Test Runner Guide](tests/README.md)** - Running tests and validation
- **[Performance Testing](docs/testing/)** - Performance benchmarks and optimization
- **[Quality Assurance](scripts/auditing/README.md)** - Code quality and duplicate detection
### ๐๏ธ **Infrastructure & Deployment**
- **[OpenTofu Templates](opentofu/README.md)** - Infrastructure as Code templates
- **[Configuration Templates](configs/README.md)** - Environment and profile configurations
- **[Build System](build/README.md)** - Package building and distribution
### ๐ฌ **Advanced Topics**
- **[Module Communication](aither-core/modules/ModuleCommunication/README.md)** - Inter-module messaging and APIs
- **[Parallel Execution](aither-core/modules/ParallelExecution/README.md)** - High-performance parallel processing
- **[License Management](aither-core/modules/LicenseManager/README.md)** - License compliance and management
- **[API Integration](aither-core/modules/RestAPIServer/README.md)** - REST API server and webhooks
---
## ๐ฆ Manual Installation (If Preferred)
**Alternative if you prefer manual control:**
1. **Download**: Go to **[Releases](https://github.com/wizzense/AitherZero/releases/latest)** โ Choose your profile and platform
2. **Extract**: Right-click โ Extract All (or `tar -xzf` on Unix)
3. **Run**: Double-click `AitherZero.bat` (Windows) or run `./aitherzero.sh` (Unix)
**Available Package Matrix:**
| Profile | Windows | Linux | macOS |
|---------|---------|-------|-------|
| **Minimal** (5-8 MB) | `AitherZero-[version]-minimal-windows.zip` | `AitherZero-[version]-minimal-linux.tar.gz` | `AitherZero-[version]-minimal-macos.tar.gz` |
| **Standard** (15-25 MB) | `AitherZero-[version]-standard-windows.zip` | `AitherZero-[version]-standard-linux.tar.gz` | `AitherZero-[version]-standard-macos.tar.gz` |
| **Development** (35-50 MB) | `AitherZero-[version]-development-windows.zip` | `AitherZero-[version]-development-linux.tar.gz` | `AitherZero-[version]-development-macos.tar.gz` |
> ๐ก **Recommendation**: Start with **Standard** profile for most use cases
## ๐ฏ After Installation - Modern CLI Interface
**Once installed, AitherZero provides a clean, modern CLI:**
```bash
# ๐ Essential Commands
aither help # Show all commands
aither init # Interactive setup
aither dev patch "Bug fix" # Development workflow
aither deploy plan ./infrastructure # Infrastructure planning
```
**Windows users** can use the convenient batch wrapper:
```cmd
aither help
aither init
aither dev patch "Bug fix"
```
### ๐ Setup Options
```bash
# Interactive setup (recommended)
./aither.ps1 init
# Or traditional setup with profiles:
./Start-AitherZero.ps1 -Setup -InstallationProfile minimal # Core only
./Start-AitherZero.ps1 -Setup -InstallationProfile developer # + AI tools
./Start-AitherZero.ps1 -Setup -InstallationProfile full # + Enterprise
```
## ๐ฏ What You Get
**Complete Infrastructure Automation Framework:**
- โจ **Ultra-Simple Installation** - One command gets you running
- ๐ **Modern CLI Interface** with clean command structure (`aither [command]`)
- ๐ง **Intelligent Setup Wizard** with progress tracking
- ๐ง **23 Consolidated Modules** for infrastructure automation (reduced from 30+)
- โก **Cross-Platform Support** - Windows, Linux, macOS
- ๐ **Developer Workflow Automation** - Git, releases, testing
- ๐ฏ **No Installation Required** - Portable application packages
- ๐ค **AI-Powered Automation** support for intelligent operations
---
## ๐ง Development & Contributing
> ๐ **Note**: Instructions above are for end users. If you're developing AitherZero, use these commands:
```powershell
# Run from development repository:
pwsh -File ./aither-core/aither-core.ps1
# Run tests:
./tests/Run-Tests.ps1 -Quick
# Build packages:
./build/Build-Package.ps1
```
**See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed development setup.**
---
## ๐ Platform Compatibility
AitherZero is designed for **cross-platform compatibility** with PowerShell 7.0+ and provides graceful degradation for platform-specific features:
### โ
Fully Supported Platforms
| Platform | PowerShell Version | Status | Key Features |
|----------|-------------------|---------|-------------|
| **Windows** | 7.0+ (Core) | โ
**Full Support** | Complete feature set including Windows Services, Registry, Event Logs |
| **Linux** | 7.0+ (Core) | โ
**Full Support** | SystemD services, Unix permissions, package management |
| **macOS** | 7.0+ (Core) | โ
**Full Support** | LaunchD services, Unix permissions, Homebrew integration |
### ๐ง Platform-Specific Features
| Feature | Windows | Linux | macOS | Fallback Behavior |
|---------|---------|-------|-------|-------------------|
| **Service Management** | Get-Service | systemctl | launchctl | Generic process management |
| **System Information** | WMI/CIM | /proc, /sys | system_profiler | Basic PowerShell cmdlets |
| **User Management** | AD/Local Users | /etc/passwd, useradd | dscl | Standard user operations |
| **Package Management** | winget/Chocolatey | apt/yum/dnf | brew/port | Manual installation |
| **File Permissions** | ACLs | chmod/chown | chmod/chown | Basic file operations |
| **Path Handling** | Backslash (\) | Forward slash (/) | Forward slash (/) | Automatic conversion |
### ๐ ๏ธ Cross-Platform Utilities
AitherZero includes built-in utilities for handling platform differences:
```powershell
# Automatic platform detection and path handling
Get-CrossPlatformPath -BasePath $env:HOME -ChildPath @("documents", "file.txt")
# Windows: C:\Users\username\documents\file.txt
# Linux/macOS: /home/username/documents/file.txt
# Platform-specific feature detection
Test-PlatformFeature -FeatureName "WindowsServices" -RequiredCommands @("Get-Service")
# Returns: IsSupported, AlternativeOptions, RecommendedAction
# Graceful feature execution with fallback
Invoke-PlatformFeatureWithFallback -FeatureName "ServiceManagement" -PrimaryAction { Get-Service } -FallbackAction { Get-Process }
```
### ๐ Platform Testing
Run platform-specific tests to validate compatibility:
```powershell
# Test cross-platform compatibility
./tests/Run-Tests.ps1 -Platform
# Generate platform compatibility report
./tests/platform/CrossPlatform.Tests.ps1
```
### โ ๏ธ Platform Limitations
- **Windows-only features**: Some security modules require Windows-specific APIs
- **Linux-only features**: SystemD-specific functionality not available on other platforms
- **macOS-only features**: LaunchD and native macOS integrations
- **Performance variations**: File system operations may vary in speed across platforms
---
## ๐ Key Features
**Infrastructure Automation Framework:**
- ๐ **Cross-Platform**: Windows, Linux, macOS with PowerShell 7.0+
- ๐๏ธ **Infrastructure as Code**: OpenTofu/Terraform integration
- ๐งฉ **Modular Architecture**: 23 consolidated PowerShell modules with clear boundaries
- ๐ค **AI-Powered Automation**: Intelligent infrastructure management
- ๐ **Enterprise Logging**: Centralized logging with multiple levels
- ๐ง **Git Workflow**: Automated patch management with PR/issue creation
- ๐งช **Testing Framework**: Bulletproof validation with Pester integration
- โก **Performance Optimized**: 50-80% faster CI/CD with parallel execution and caching
**Core Modules:** Logging, ConfigurationCore, ModuleCommunication, LicenseManager
**Feature Modules:** LabRunner, PatchManager, BackupManager, DevEnvironment, OpenTofuProvider, UserExperience, AIToolsIntegration, TestingFramework, and more.
### ๐ฏ Performance Metrics & Optimization
**CI/CD Performance Achievements:**
- โก **50% Faster CI Execution** - Optimized from ~10 minutes to ~5 minutes
- ๐ **Parallel Test Execution** - 2-4x speedup with intelligent throttling
- ๐พ **Module Loading Optimization** - 50-80% faster with intelligent caching
- ๐ฆ **Enhanced Dependency Caching** - 30-50% reduction in dependency install time
- ๐ **Adaptive Resource Optimization** - Dynamic scaling based on system resources
**Current Performance Baseline:**
- **Test Execution**: Sub-2 minutes for core test suite
- **Module Loading**: <1 second parallel import of 30+ modules
- **CI Pipeline**: ~5 minutes end-to-end (down from ~10 minutes)
- **Cache Hit Rate**: >90% for modules and dependencies
[๐ View Performance Reports](https://wizzense.github.io/AitherZero/performance-metrics.html)
## ๐ Requirements
- **PowerShell 5.1+** (PowerShell 7+ recommended)
- **Git** (for repository operations)
- **OpenTofu/Terraform** (for infrastructure automation)
- **Windows/Linux/macOS** (cross-platform compatible)
*Optional: Node.js 18+, Claude Code (for AI features)*
## ๐ก Usage Examples
```bash
# After installation, start with:
aither init # Interactive setup
aither help # Show all commands
# Development workflows:
# Note: Use Invoke-ReleaseWorkflow for creating releases
# aither dev commands are for other development tasks
# Infrastructure operations:
aither deploy plan ./infrastructure # Plan deployment
aither deploy apply ./infrastructure # Apply changes
# Module operations:
aither backup cleanup --retention 30 # Cleanup old backups
aither lab deploy --config lab-config.json # Deploy lab environment
```
## ๐๏ธ Architecture
```text
AitherZero/
โโโ aither.ps1 # Modern CLI interface
โโโ aither-core/ # Core application engine
โ โโโ modules/ # 28+ PowerShell modules
โ โโโ shared/ # Shared utilities
โโโ configs/ # Configuration templates
โโโ opentofu/ # Infrastructure templates
```
## ๐ Documentation
- **[Contributing Guide](CONTRIBUTING.md)** - Development setup and guidelines
- **[Testing Guide](docs/BULLETPROOF-TESTING-GUIDE.md)** - Comprehensive testing documentation
- **[PatchManager Guide](docs/PATCHMANAGER-COMPLETE-GUIDE.md)** - Git workflow automation
- **[Examples](docs/examples/)** - Common usage patterns and scripts
## ๐ Support & Community
- **Issues**: [GitHub Issues](https://github.com/wizzense/AitherZero/issues)
- **Discussions**: [GitHub Discussions](https://github.com/wizzense/AitherZero/discussions)
- **License**: [MIT License](LICENSE)
---
**Made with โค๏ธ for infrastructure automation**