This project has been merged into Packer as a builder.
The documentation can be found here: https://www.packer.io/docs/builders/linode/
The code can be found here: https://github.com/hashicorp/packer/tree/master/builder/linode
Packer Builder plugin for Linode Images
License: Mozilla Public License 2.0
This project has been merged into Packer as a builder.
The documentation can be found here: https://www.packer.io/docs/builders/linode/
The code can be found here: https://github.com/hashicorp/packer/tree/master/builder/linode
Possible duplicate of #10 (comment)
image is created from Linode disk
Linode is shutdown and Packer exits with an error like ==> linode: Error creating image: [404] Not found
packer build ./packer/linode-build-marketplace.json
❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Pop!_OS 18.04 LTS
Release: 18.04
Codename: bionic
❯ go version
go version go1.12.4 linux/amd64
❯ packer --version
1.3.5
Env var LINODE_TOKEN
is set and is sourced by Packer to assign linode_token
in the template. The token has all privileges for the Linode cloud manager account.
PACKER_LOG interleaved with output from packer build
2019/04/25 17:18:43 [INFO] (telemetry) ending ansible
==> linode: Shutting down Linode...
==> linode: Creating image...
2019/04/25 17:20:08 ui error: ==> linode: Error creating image: [404] Not found
==> linode: Error creating image: [404] Not found
2019/04/25 17:20:09 [INFO] (telemetry) ending linode
2019/04/25 17:20:09 ui error: Build 'linode' errored: Error creating image: [404] Not found
2019/04/25 17:20:09 Builds completed. Waiting on interrupt barrier...
2019/04/25 17:20:09 machine readable: error-count []string{"1"}
Build 'linode' errored: Error creating image: [404] Not found
2019/04/25 17:20:09 ui error:
==> Some builds didn't complete successfully and had errors:
2019/04/25 17:20:09 machine readable: linode,error []string{"Error creating image: [404] Not found"}
2019/04/25 17:20:09 ui error: --> linode: Error creating image: [404] Not found
==> Builds finished but no artifacts were created.
2019/04/25 17:20:09 [INFO] (telemetry) Finalizing.
==> Some builds didn't complete successfully and had errors:
--> linode: Error creating image: [404] Not found
==> Builds finished but no artifacts were created.
2019/04/25 17:20:09 waiting for all plugin processes to complete...
2019/04/25 17:20:09 /home/kbingham/Sites/netfoundry/bin/packer-1.3.5: plugin process exited
2019/04/25 17:20:09 /home/kbingham/.packer.d/plugins/packer-builder-linode: plugin process exited
2019/04/25 17:20:09 /home/kbingham/Sites/netfoundry/bin/packer-1.3.5: plugin process exited
Packer template builders[]
"builders": [
{
"type": "linode",
"linode_token": "{{user `linode_token`}}",
"region": "us-central",
"swap_size": 256,
"image": "linode/centos7",
"instance_type": "g6-nanode-1",
"instance_label": "packerbuilder-{{timestamp}}",
"image_label": "nf-{{user `img_type`}}-{{user `release_version`}}",
"image_description": "nf-{{user `img_type`}}-{{user `release_version`}}",
"ssh_username": "{{user `ssh_username`}}"
}
],
The Linode Community is a great place to get additional support.
Hi,
I may be using this project incorrectly, but when checking out master, i cannot build the plugin, the error is
go build -o packer-builder-linode
# github.com/dradtke/packer-builder-linode/linode
../../go/src/github.com/dradtke/packer-builder-linode/linode/builder.go:36:61: undefined: packer.Cache
make: *** [build] Error 2
If i remove the reference to packer.Cache in the function signature, then it builds fine. However, potentially unrelated, the packer build completes but then it's unable to create the image -
linode: Error creating image: [404] Not found
Is there another branch I should be using?
Thanks
Adopt the parent project license so that this plugin may be included in the parent project:
This might be my misunderstanding of how Packer functions, but the image creation here seems to leave behind a temporary Linode. Ideally, I'd like to have this Linode be deleted after the image is created.
Is there a clean way to do that in the Packer builder?
Hi @dradtke !
I've recently taken the community started terraform-provider to official status. I would love to do the same with this project.
I think a first step would be to convert this project to one that consumes the linodego wrapper for the v4 API.
Maybe we can have some discussion to help linode newbies get started...
One option is to install a distro via Linode's default images. Then we can modify that and create a base image. How does that compare to using packer? Also I'd like to know the difference between building a linux distro with packer for linode and building an AMI with AWS's AMI builder... They're analogous, yes?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.