move comments outside of datastructure

This commit is contained in:
Matthew Patton 2018-04-27 21:38:51 -04:00
parent 913ad33a11
commit 0fa037d297
2 changed files with 2 additions and 4 deletions

View File

@ -79,9 +79,9 @@ type guestOSTypeConfig struct {
modulePathJoiner string
}
#FIXME assumes both Packer host and target are same OS
var guestOSTypeConfigs = map[string]guestOSTypeConfig{
provisioner.UnixOSType: {
#FIXME assumes both Packer host and target are same OS
tempDir: "/tmp",
stagingDir: "/tmp/packer-puppet-masterless",
executeCommand: "cd {{.WorkingDir}} && " +
@ -100,7 +100,6 @@ var guestOSTypeConfigs = map[string]guestOSTypeConfig{
modulePathJoiner: ":",
},
provisioner.WindowsOSType: {
#FIXME assumes both Packer host and target are same OS
tempDir: path.filepath.ToSlash(os.Getenv("TEMP")),
stagingDir: path.filepath.ToSlash(os.Getenv("SYSTEMROOT")) + "/Temp/packer-puppet-masterless",
executeCommand: "cd {{.WorkingDir}} && " +

View File

@ -107,9 +107,9 @@ type guestOSTypeConfig struct {
facterVarsJoiner string
}
#FIXME assumes both Packer host and target are same OS
var guestOSTypeConfigs = map[string]guestOSTypeConfig{
provisioner.UnixOSType: {
#FIXME assumes both Packer host and target are same OS
tempDir: "/tmp",
stagingDir: "/tmp/packer-puppet-server",
executeCommand: "cd {{.WorkingDir}} && " +
@ -127,7 +127,6 @@ var guestOSTypeConfigs = map[string]guestOSTypeConfig{
facterVarsJoiner: " ",
},
provisioner.WindowsOSType: {
#FIXME assumes both Packer host and target are same OS
tempDir: path.filepath.ToSlash(os.Getenv("TEMP")),
stagingDir: path.filepath.ToSlash(os.Getenv("SYSTEMROOT")) + "/Temp/packer-puppet-server",
executeCommand: "cd {{.WorkingDir}} && " +