Skip to content

Commit

Permalink
target packer 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rgl committed Aug 14, 2020
1 parent 5f02c0f commit e5ed828
Show file tree
Hide file tree
Showing 7 changed files with 348 additions and 136 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Expand Up @@ -8,7 +8,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.14.4'
go-version: '^1.15.0'
- name: Set up msys2
uses: msys2/setup-msys2@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -6,14 +6,14 @@

This is a Packer plugin for installing Windows updates (akin to [rgl/vagrant-windows-update](https://github.com/rgl/vagrant-windows-update)).

**NB** This was only tested with Packer 1.5.1 on Windows Server 2019, macOS Catalina and Ubuntu 20.04.
**NB** This was only tested with Packer 1.6.1 on Windows Server 2019, macOS Catalina and Ubuntu 20.04.

# Usage

[Download the binary from the releases page](https://github.com/rgl/packer-provisioner-windows-update/releases)
and put it in the same directory as your `packer` executable.

Use the provisioner from your packer template file, e.g. like in [rgl/windows-2016-vagrant](https://github.com/rgl/windows-2016-vagrant):
Use the provisioner from your packer template file, e.g. like in [rgl/windows-vagrant](https://github.com/rgl/windows-vagrant):

```json
{
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
0.9.0
0.10.0
12 changes: 5 additions & 7 deletions go.mod
@@ -1,13 +1,11 @@
module github.com/rgl/packer-provisioner-windows-update

require (
github.com/hashicorp/hcl/v2 v2.0.0
github.com/hashicorp/packer v1.5.1
github.com/hashicorp/hcl/v2 v2.3.0
github.com/hashicorp/packer v1.6.1
github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 // indirect
github.com/shurcooL/vfsgen v0.0.0-20181202132449-6a9ea43bcacd // indirect
github.com/zclconf/go-cty v1.1.2-0.20191126233707-f0f7fd24c4af
github.com/shurcooL/vfsgen v0.0.0-20200627165143-92b8a710ab6c // indirect
github.com/zclconf/go-cty v1.4.0
)

replace git.apache.org/thrift.git => github.com/apache/thrift v0.0.0-20180902110319-2566ecd5d999

go 1.13
go 1.15
434 changes: 324 additions & 110 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion update/provisioner.go
Expand Up @@ -257,7 +257,7 @@ func (p *Provisioner) restart(ctx context.Context, ui packer.Ui, comm packer.Com
return err
}

if (restartPending) {
if restartPending {
ui.Say("Restart is still pending...")
} else {
ui.Say("Restart complete")
Expand Down
28 changes: 14 additions & 14 deletions update/provisioner.hcl2spec.go

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

0 comments on commit e5ed828

Please sign in to comment.