Skip to content

Instantly share code, notes, and snippets.

View richardraseley's full-sized avatar

Richard Raseley richardraseley

View GitHub Profile
{
"image1": {
"nameFull": "Image 1",
"version": "1.0",
"link": "http://internal.domain.local/image1.iso"
},
"image2": {
"nameFull": "Image 2",
"version": "1.0",
"link": "http://internal.domain.local/image2.iso"
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "/var/www/html/css">
Options Indexes FollowSymLinks
AllowOverride None
require 'json'
require 'sinatra'
set :port => 8080, :bind => '0.0.0.0'
get '/images' do
fs = Dir.glob('/home/user/packer-resources/images/*')
h = {}
h[:images] = []
fs.each do |f|
014/01/29 13:53:02 Packer Version: 0.5.1 eeefde8fc71444fdfc77711dc0e2789fa9b3b7d2
2014/01/29 13:53:02 Packer Target OS/Arch: linux amd64
2014/01/29 13:53:02 Built with Go Version: go1.2
2014/01/29 13:53:02 Detected home directory from env var: /home/user
2014/01/29 13:53:02 Attempting to open config file: /home/user/.packerconfig
2014/01/29 13:53:02 File doesn't exist, but doesn't need to. Ignoring.
2014/01/29 13:53:02 Packer config: &{PluginMinPort:0 PluginMaxPort:0 Builders:map[amazon-chroot:packer-builder-amazon-chroot amazon-instance:packer-builder-amazon-instance docker:packer-builder-docker openstack:packer-builder-openstack qemu:packer-builder-qemu virtualbox-ovf:packer-builder-virtualbox-ovf vmware-vmx:packer-builder-vmware-vmx amazon-ebs:packer-builder-amazon-ebs digitalocean:packer-builder-digitalocean googlecompute:packer-builder-googlecompute virtualbox-iso:packer-builder-virtualbox-iso vmware-iso:packer-builder-vmware-iso] Commands:map[build:packer-command-build fix:packer-command-fix inspect:pa