Skip to content

Commit

Permalink
Merge pull request #7 from darkedges/master
Browse files Browse the repository at this point in the history
Updated to use Packer 1.5 APIs and some other fixes
  • Loading branch information
mefellows authored Feb 25, 2021
2 parents 202e1fc + 5ba5d6e commit eed8188
Show file tree
Hide file tree
Showing 3,897 changed files with 715 additions and 790,182 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dev:
@TF_DEV=1 sh -c "$(CURDIR)/scripts/build.sh"

test:
"$(CURDIR)/scripts/test.sh"
@sh -c "$(CURDIR)/scripts/test.sh"

testrace:
go test -race $(TEST) $(TESTARGS)
Expand Down
22 changes: 22 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module github.com/mefellows/packer-dsc

go 1.13

require (
github.com/hashicorp/errwrap v1.0.0
github.com/hashicorp/go-checkpoint v0.0.0-20171009173528-1545e56e46de
github.com/hashicorp/go-cleanhttp v0.5.0
github.com/hashicorp/go-multierror v1.0.0
github.com/hashicorp/go-uuid v1.0.1
github.com/hashicorp/go-version v1.2.0
github.com/hashicorp/hcl/v2 v2.0.0
github.com/hashicorp/packer v1.5.1
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d
github.com/mitchellh/go-fs v0.0.0-20180402234041-7b48fa161ea7
github.com/mitchellh/iochan v1.0.0
github.com/mitchellh/mapstructure v0.0.0-20180111000720-b4575eea38cc
github.com/mitchellh/multistep v0.0.0-20170316185339-391576a156a5
github.com/mitchellh/reflectwalk v1.0.0
github.com/ugorji/go v0.0.0-20170620104852-5efa3251c7f7
github.com/zclconf/go-cty v1.1.2-0.20191126233707-f0f7fd24c4af
)
522 changes: 522 additions & 0 deletions go.sum

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion provisioner/dsc/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ type Config struct {
common.PackerConfig `mapstructure:",squash"`
ctx interpolate.Context

// The command used to execute Puppet.
// The command used to execute DSC.
ExecuteCommand string `mapstructure:"execute_command"`

// The file containing the command to execute DSC
ExecuteCommandFilePath string `mapstructure:"execute_command_file"`

// Set of Parameters to pass to the DSC Configuration.
ConfigurationParams map[string]string `mapstructure:"configuration_params"`

Expand Down
74 changes: 74 additions & 0 deletions provisioner/dsc/config.hcl2spec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit eed8188

Please sign in to comment.