Comments (4)
Thanks, @pommetjehorlepiep . I don't have an easy way/place to test these at the moment so your help is appreciated.
https://hacktoberfest.com/ is just around the corner too in case folks were keen to try doing some pull-requests.
from packer-build.
@tylert the partial fix doesn´t solve the problem (at least for me using 22.04 Jammy)
I now get this:
Error: Unsupported block type
on base.pkr.hcl line 4, in packer:
4: required_providers {
Blocks of type "required_providers" are not expected here.
Error: Unsupported block type
on base.pkr.hcl line 4, in packer:
4: required_providers {
Blocks of type "required_providers" are not expected here.
Changing required_providers
to required_plugins
solves the above issue.
But then a new issue is raised:
Error: Error in function call
on base.pkr.hcl line 305:
(source code not available)
with var as object with 52 attributes,
var.user_data_location as "user-data".
Call to function "templatefile" failed: user-data:119,20-29: Unsupported
attribute; This object does not have an attribute named "username"., and 1 other
diagnostic(s).
Error: Error in function call
on base.pkr.hcl line 364:
(source code not available)
with var as object with 52 attributes,
var.user_data_location as "user-data".
Call to function "templatefile" failed: user-data:119,20-29: Unsupported
attribute; This object does not have an attribute named "username"., and 1 other
diagnostic(s).
from packer-build.
Well, it's clear that Packer uses a slightly different syntax in the "packer" block than other HashiCorp tools (e.g.: https://www.terraform.io/language/providers/requirements#requiring-providers).
from packer-build.
@pommetjehorlepiep I made the "easy" changes suggested by the output above but the rest is likely to be a bit more involved. If you would like to try solving this issue and submit a pull-request, I'll be happy to merge it in. Otherwise, I'm not likely going to be able to do much about the remaining validation errors you were seeing here.
from packer-build.
Related Issues (20)
- ubuntu/xenial/base-uefi.json freezes on GRUB menu HOT 3
- UEFI Booting on VirtualBox HOT 2
- gpus? HOT 1
- vagrant-libvirtd: possible hint HOT 1
- Bionic fails to build with Packer HOT 1
- Post-processor build failure on bionic HOT 3
- Crash with Bionic Beaver and Packer 1.2.4 HOT 3
- Build failed running post-processor: shell-local HOT 3
- Packer fix error (when running with packer 1.4.2) HOT 2
- Missing qemu.sh and vbox.sh HOT 1
- LUKS unattended builds do not complete automatically HOT 6
- Thanks for the inspiration! HOT 1
- Error getting SSH address 500 QEMU guest agent is not running HOT 3
- [preseed debian] Skip past "Force UEFI Install" installer prompt HOT 1
- qemuargs build options HOT 4
- [DEBUG] SSH handshake err
- Templating of external files is not yet complete in conversion from YAML to HCL HOT 14
- Debian UEFI build HOT 4
- Errors in building packer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packer-build.