feat: Add Packer build automation scripts
Some checks are pending
Build and Release / build-sign-package (push) Waiting to run
Some checks are pending
Build and Release / build-sign-package (push) Waiting to run
- Added packer/variables.pkr.hcl with configurable variables - Added build-template.sh with interactive build script - Added .env.example for environment configuration - Updated windows.pkr.hcl to use variables - Supports environment variables and command line arguments
This commit is contained in:
parent
e4f03427b7
commit
61ae0d0a07
4 changed files with 315 additions and 17 deletions
19
.env.example
Normal file
19
.env.example
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Windows Automation Environment Configuration
|
||||
# Copy this file to .env and fill in your values
|
||||
|
||||
# Proxmox Configuration
|
||||
export PROXMOX_URL="https://la-vmh-07:8006/api2/json"
|
||||
export PROXMOX_USERNAME="root@pam"
|
||||
export PROXMOX_PASSWORD="your-proxmox-root-password"
|
||||
export PROXMOX_NODE="la-vmh-07"
|
||||
|
||||
# Windows Configuration
|
||||
export WINRM_PASSWORD="PackerPassword123!"
|
||||
|
||||
# Proxmox API Token (alternative to password)
|
||||
export PM_API_TOKEN_ID="root@pam!forgejo-automation"
|
||||
export PM_API_TOKEN_SECRET="your-api-token-secret"
|
||||
|
||||
# Terraform Variables
|
||||
export TF_VAR_build_id="001"
|
||||
export TF_VAR_template_vm_id="9000"
|
||||
Loading…
Add table
Add a link
Reference in a new issue