This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ /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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package command | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"net" | |
"os" | |
"code.google.com/p/go-uuid/uuid" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |