Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am bl4ckcontact on github.
* I am bl4ckcontact (https://keybase.io/bl4ckcontact) on keybase.
* I have a public key ASCZnDbbj6GSmznT14lGhrG5Vs88Deh3rILDwMZyIvXOBwo
To claim this, I am signing this object:
# -*- coding: utf-8 -*-
'''
states for infoblox stuff
ensures a record is either present or absent in an Infoblox DNS system
.. versionadded:: 2016.3.0
'''
from __future__ import absolute_import
$ /usr/local/bin/packer.io build -force -var headless=true -debug 02-windows-2008-r2.json
Debug mode enabled. Builds will not be parallelized.
virtualbox-ovf output will be in this color.
==> virtualbox-ovf: Pausing after run of step 'StepOutputDir'. Press enter to continue.
==> virtualbox-ovf: Pausing after run of step 'StepSuppressMessages'. Press enter to continue.
==> virtualbox-ovf: Pausing after run of step 'StepCreateFloppy'. Press enter to continue.
==> virtualbox-ovf: Pausing after run of step 'StepHTTPServer'. Press enter to continue.
==> virtualbox-ovf: Pausing after run of step 'StepDownloadGuestAdditions'. Press enter to continue.
@bl4ckcontact
bl4ckcontact / packer_log-1-debug.log
Last active November 14, 2016 20:44
Packer log
$ PACKER_LOG=1 /usr/local/bin/packer.io build -force -var headless=true 02-windows-2008-r2.json
2016/11/14 12:06:20 [INFO] Packer version: 0.11.1.dev
2016/11/14 12:06:20 Packer Target OS/Arch: linux amd64
2016/11/14 12:06:20 Built with Go Version: go1.7.3
2016/11/14 12:06:20 Detected home directory from env var: /home/bamboo
2016/11/14 12:06:20 Using internal plugin for vmware-vmx
2016/11/14 12:06:20 Using internal plugin for azure-arm
2016/11/14 12:06:20 Using internal plugin for docker
2016/11/14 12:06:20 Using internal plugin for parallels-pvm
package command
import (
"flag"
"fmt"
"log"
"net"
"os"
"code.google.com/p/go-uuid/uuid"
func (i *Connection) Run(args []string) int {
// Implements flags for the 'start' option
cmdFlags := flag.NewFlagSet("server", flag.ContinueOnError)
cmdFlags.Usage = func() { i.Help() }
cmdFlags.StringVar(&i.serverAddress, "server", "0.0.0.0", "The scattermux server address.")
if err := cmdFlags.Parse(args); err != nil {
return 1
}
type Connection struct {
hostID string
intIndex int
}
// Run method initiates a new session with the scattermux server.
func (i *Connection) Run(args []string) int {
interfaces, err := net.Interfaces()
for _, inter := range interfaces {
fmt.Println(inter.Index, inter.HardwareAddr)