-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin fails to compile during go get #17
Comments
@asonix thanks for pointing this out! It turns out this is due to a refactoring going on in the core parts of Packer (actual commit causing this: hashicorp/packer@1d3a4d6). I'll have a look later if we can fix this easily. If not it will require some more time to refactor the CloudStack plugin. Will try to let you know later today or tomorrow. |
@asonix I need a little more time for this one... In the mean time you could just checkout packer 0.7.5 and build this plugin with that instead of with the latest master. Would that work for you? |
I'm still getting this with 0.7.5: bash-3.2$ packer version Your version of Packer is out of date! The latest version github.com/schubergphilis/packer-cloudstacksrc/github.com/schubergphilis/packer-cloudstack/builder.go:77: undefined: packer.ConfigTemplate |
Yes... I know... I really have to make some time for this to update this plugin to work with the latest and greatest Packer builds. Personally I'm actually even more inclined to just convert this plugin to a built-in builder. That would make this separate plugin obsolete and ensures we will always be able to work with Packer and CloudStack. Will have to schedule some time in the coming weeks to get this done... |
Any update on this? |
@svanharmelen Great idea getting this built-in to Packer! 👍 |
I'm planning to work on this somewhere next week... |
@svanharmelen I too am interested in getting this working. Wondering if you've had a chance to look into this? Are there known working versions of Packer that this plugin is compatible with? |
Yeah, I clearly didn't manage to work on this last week 😞 It's still on my radar, but have some planning difficulties at the moment. Will try to get back at this one asap... Not sure, but I think the plugin should work with packer 0.7.5 |
Thanks @svanharmelen. Any idea what the scope of the current issue is? Is it a whole refactor, or just a few adjustments? Is that yet to be determined? Just trying to see if we can also help so it's not all on your shoulders. |
I suspect it will be a pretty big refactor... Not only did the packer code change quite a lot recently, I would also like to switch the used CloudStack package to the same one used in other HashiCorp tools (mainly Terraform): https://github.com/xanzy/go-cloudstack So it's definitely more then just some tweaking and updating I'm afraid. |
packer-cloudstack still compiles fine with packer 0.7.5, however packer 0.7.5 doesn't compile any longer either. A workaround is to go get packer, delete the compiled packer binaries it builds, check out the 0.7.5 tag, then download the precompiled 0.7.5 release and place the binaries as if 0.7.5 compiled successfully. Then I can build packer-cloudstack. |
Thanks for the clarification. I wonder if anyone knows of a plugin or other method to get Packer to produce VHD files? That could be a decent workaround for now. |
Hey Guys, FYI, one of our team members went a different route and wrote a Packer post-processor that converts a VirtualBox image into a VHD: https://github.com/benwebber/packer-post-processor-vhd Just thought we'd share. |
Have you published your half done port somewhere, @svanharmelen ? |
No, I didn't... And by now it's hopelessly out-of-date again 😞 As the holidays are now over, I'm planning to start working again by picking up two tasks that are both long past due. This being one of them... So I'll be working again on this in the coming week(s) and hope I have the space and time to finish it up before being hit with a wall of other work again 😉 |
I know, I know... It took waaaaay to long, but here it is: hashicorp/packer#3909 |
I guess this issue should probably be closed for a while now already 😏 |
The only info I really have available is the following:
Ubuntu 14.04
Packer 0.7.5
$ go get -u github.com/schubergphilis/packer-cloudstack
# github.com/schubergphilis/packer-cloudstack go/src/github.com/schubergphilis/packer-cloudstack/builder.go:77: undefined: packer.ConfigTemplate
The text was updated successfully, but these errors were encountered: