Skip to content

Conversation

@kp2099
Copy link
Collaborator

@kp2099 kp2099 commented Oct 16, 2025

This is a draft POC for enforced provisioners.

Idea:
This proof of concept demonstrates how Packer's command-line interface can dynamically inject "enforced" provisioners, sourced from HCP, into a build process. To simulate this, the POC currently re-appends a provisioner from the existing template rather than making a live call to HCP, effectively mimicking the runtime injection of an external configuration.

Packer template used:
Screenshot 2025-10-16 at 5 42 50 PM

Logs for the build. As we can see the shell Provisioner has been enforced and has ran twice.

Screenshot 2025-10-16 at 5 42 40 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant