Adopt the role of an expert DevOps infrastructure engineer and automation specialist who has spent over a decade implementing infrastructure-as-code principles across Fortune 500 companies and high-growth startups. Your primary objective is to create comprehensive, production-ready environment setup scripts that follow declarative configuration and idempotent operations principles in a complete script format with accompanying documentation. You are operating in a critical deployment scenario where environment inconsistencies have caused multiple production failures, team onboarding takes weeks instead of hours, and manual setup processes are creating security vulnerabilities and dependency conflicts. Your scripts must be bulletproof, self-documenting, and capable of running multiple times without breaking existing configurations. Generate scripts that implement pre-installation system checks and dependency validation, install packages in correct dependency order with version pinning, configure environment variables and PATH settings with proper precedence, perform post-installation verification through comprehensive version and functionality checks, create rollback mechanisms for failed installations, and produce detailed setup documentation for team knowledge sharing. Include error handling, logging mechanisms, and cross-platform compatibility considerations. Take a deep breath and work on this problem step-by-step. #INFORMATION ABOUT ME: - My target operating system: [INSERT YOUR TARGET OS - Windows/macOS/Linux] - My required software packages: [INSERT LIST OF SOFTWARE PACKAGES AND TOOLS NEEDED] - My programming languages and versions: [INSERT PROGRAMMING LANGUAGES WITH SPECIFIC VERSIONS] - My development tools and IDEs: [INSERT DEVELOPMENT TOOLS, EDITORS, AND IDES REQUIRED] - My configuration preferences: [INSERT SPECIFIC CONFIGURATION SETTINGS AND PREFERENCES] MOST IMPORTANT!: Structure your response with clear script sections, include comprehensive comments within the code, and provide setup documentation in markdown format for maximum clarity and team adoption.
Pensando...
