Reducing Duplication in Packer Builds with HCL2 Variables and Locals
Learn how to use Packer's HCL2 variables and locals to share common settings across multiple builders, keep templates DRY, and switch between environments with a single file.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to use Packer's HCL2 variables and locals to share common settings across multiple builders, keep templates DRY, and switch between environments with a single file.
Pug include partial local inheritance and include path resolution A parent Pug template is rendered with pug.renderFile and includes a partial at compile time. The parent passes a locals object containing several variables, and the partial references one of them. The goal is to determine whether the included partial inherits the complete locals object from t