Skip to content

Conversation

@layfield-ccdc
Copy link
Contributor

@layfield-ccdc layfield-ccdc commented Nov 3, 2025

So we can build in containers

@layfield-ccdc layfield-ccdc requested a review from Copilot November 3, 2025 16:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Packer configuration to support container-based builds by introducing CD-based provisioning for vSphere, updating boot commands, and making Ansible paths configurable.

  • Renamed bootcommand variable to boot_command for consistency with Packer conventions
  • Updated boot commands to use CD-based cloud-init (nocloud) instead of HTTP-based provisioning
  • Added configurable variables for port ranges, IP addresses, and Ansible file paths

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
variables.auto.pkr.hcl Renamed boot command variable and added new variables for port configuration and Ansible paths
ubuntu24.pkrvars.hcl Updated boot command to use nocloud datasource and upgraded Ubuntu 24.04 ISO to version 24.04.3
ubuntu2204.pkrvars.hcl Updated boot command to use nocloud datasource for Ubuntu 22.04
ubuntu.pkr.hcl Applied boot_command variable rename, added CD files configuration for vSphere, made Ansible paths configurable
http/user-data Added open-vm-tools package and user-data configuration for root disabling and timezone

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

http_port_min = 49152
cd_files = [
"./http/meta-data",
"./http/user-data"]
Copy link

Copilot AI Nov 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The closing bracket should be on the same line as the last element or the array should use consistent multi-line formatting. Current formatting mixes single-line and multi-line style.

Suggested change
"./http/user-data"]
"./http/user-data"
]

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants