Questions tagged [packer]

PACKER QUESTIONS MUST BE PROGRAMMING RELATED. Packer is a tool for creating identical machine images for multiple platforms from a single source configuration.

"Packer is a modern tool that embraces best benefits. It's completely automated, simply run a packer build, no human touches it, Packer builds it for you. " - Mitchell Hashimoto (Creator)

Packer is an open source tool for creating identical machine images for multiple platforms from a single source configuration. Packer is lightweight, runs on every major operating system, and is highly performant, creating machine images for multiple platforms in parallel. Packer does not replace configuration management like Chef or Puppet. In fact, when building images, Packer is able to use tools like Chef or Puppet to install software onto the image.

A machine image is a single static unit that contains a pre-configured operating system and installed software which is used to quickly create new running machines. Machine image formats change for each platform. Some examples include AMIs for EC2, VMDK/VMX files for VMware, OVF exports for VirtualBox, etc.

Resources

852 questions
-1
votes
1 answer

Groovy shell script with a sed command in a Jenkins Pipeline

So writing Groovy with basic shell scripts seem to be much more difficult than it really should be. I have a pipeline that needs to replace an entry in a file after running a packer command. It seems sensible to do this in the same shell script as…
SnazzyBootMan
  • 669
  • 2
  • 15
  • 30
-1
votes
1 answer

How to Build Homestead (Vagrant) Box using Packer?

I have followed the instruction in laravel/setter markdown. I have already: Clone chef/bento into same top level folder as this repo. Run ./bin/copy-to-bento.sh Replace scripts/cleanup.sh with scripts/homestead.sh in file…
Dendi Handian
  • 348
  • 2
  • 12
-1
votes
1 answer

How do I upgrade packer on an aws ec2 instance

I have an existing installation of packer 1.0.0 on my ec2 instance which i want to upgrade to 1.2.2. How do i upgrade packer to this version. If uninstalling and re installing is the only option, what is the way to uninstall packer. The output of…
lonecoder
  • 23
  • 2
  • 5
-1
votes
1 answer

Ansible not executing main.yml

I am using Ansible local inside a Packer script to configure a Docker image. I have a role test that has a main.yml file that's supposed to output some information and create a directory to see that the script actually ran. However, the main.yml…
ajmurmann
  • 1,605
  • 3
  • 16
  • 24
-1
votes
1 answer

Automating infrastructure with packer & terraform on vsphere

With packer I can script up the creation of a template linux box and upload to my vsphere cloud instance as a vmware box. I'd like it to be uploaded or converted to a vsphere template so then I can run terraform on this template to automate the…
jiopaley
  • 126
  • 1
  • 7
-1
votes
1 answer

Packer: Sample file for Openstack

Can someone please provide me with a sample file for Packer creating OS image? I have this one: { "builders": [{ "type": "openstack", "ssh_username": "ubuntu", "tenant_name": "mytenant", "flavor": "m1.tiny", …
Misko
  • 1,542
  • 2
  • 19
  • 31
-1
votes
1 answer

how to install java8 in ubuntu instance using packer provisioner?

Trying to build an AMI using packer from an base ami available online (preferably ubuntu 12.04 precise). Looking for provisioner definition for java 8 installation. I have coupled multiple installations and executed it has went through well. But,…
-1
votes
2 answers

Puppet apache configuration file on ubuntu ec2

I am using puppet to provision an AWS AMI using packer and then launch the AMI. Puppet does all the configuration and package installations upon baking the AMI which includes installing and configuring apache and wsgi. By the time I launch the AMI…
Hamza
  • 2,180
  • 3
  • 14
  • 18
-1
votes
1 answer

automate ubuntu install via packer stuck at welcome screen

Hi i have been trying to automate the installation of ubuntu 12.04 via packer.io Seems to me that the steps are correct, however the ubuntu gets stuck on Welcome screen. i am also providing the preseed file via http. Please let me know what i am…
KAKAK
  • 879
  • 7
  • 16
  • 32
-2
votes
1 answer

packer creating manifest.json is not valid json

I am using packer to create a base ami and using a post proccessor to create a manifest.json file how can i make this json valid { "builds": [ { "name": "amazon-ebs", "builder_type": "amazon-ebs", "build_time": 1589466697, …
-3
votes
3 answers

JavaScript Minifier

Possible Duplicate: Searching a good Javascript Minifier. I am working on several javascript files that I would like to minify, but not pack. What is the best minifier out there? Personally, I'd like to find one that: Is used by reliable…
Oliver Spryn
  • 16,871
  • 33
  • 101
  • 195
-3
votes
1 answer

Packer - VBox Guest Additions

When using packer to create a virtual box centos 7 VM does packer take care of installing the guest additions? I have looked at several examples and one of them does the guest additions mounting and installing in the packer json file, is this…
berimbolo
  • 3,319
  • 8
  • 43
  • 78
1 2 3
56
57