Skip to content

Commit

Permalink
Go modules and updates for Packer 1.5 API (#21)
Browse files Browse the repository at this point in the history
* Go modules and updates for packer 1.5 API
* Add support for retries and timeouts
  • Loading branch information
fishnix authored Jan 27, 2020
1 parent c9b58b7 commit a86e223
Show file tree
Hide file tree
Showing 6 changed files with 625 additions and 13 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ There is an example packer build with goss tests in the `example/` directory.
"vars_file": "",
"username": "",
"password": "",
"debug": false
"debug": false,
"retry_timeout": "0s",
"sleep": "1s"
}
]
```
Expand Down
4 changes: 3 additions & 1 deletion example/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
"tests": [
"goss/goss.yaml"
],
"goss_file": "goss.yaml"
"goss_file": "goss.yaml",
"sleep": "2s",
"retry_timeout": "5s"
},{
"type": "shell",
"scripts": [
Expand Down
10 changes: 10 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module github.com/YaleUniversity/packer-provisioner-goss

go 1.13

require (
github.com/hashicorp/hcl/v2 v2.2.0
github.com/hashicorp/packer v1.5.1
github.com/zclconf/go-cty v1.1.2-0.20191126233707-f0f7fd24c4af
gopkg.in/yaml.v2 v2.2.7
)
Loading

0 comments on commit a86e223

Please sign in to comment.