Skip to content

Commit

Permalink
move comments outside of datastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
tb3088 committed Apr 28, 2018
1 parent 913ad33 commit 0fa037d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions provisioner/puppet-masterless/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}} && " +
Expand All @@ -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}} && " +
Expand Down
3 changes: 1 addition & 2 deletions provisioner/puppet-server/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}} && " +
Expand All @@ -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}} && " +
Expand Down

0 comments on commit 0fa037d

Please sign in to comment.