File tree 3 files changed +10
-23
lines changed
3 files changed +10
-23
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -99,6 +99,14 @@ def action_create
99
99
only_if { new_resource . install_method == 'package' }
100
100
end
101
101
102
+ if node [ 'platform' ] == 'windows'
103
+ include_recipe 'chocolatey::default'
104
+
105
+ chocolatey new_resource . package_name do
106
+ version new_resource . version
107
+ end
108
+ end
109
+
102
110
if new_resource . install_method == 'binary'
103
111
artifact = libartifact_file "consul-#{ new_resource . version } " do
104
112
artifact_name 'consul'
Original file line number Diff line number Diff line change 12
12
supports 'redhat' , '>= 6.4'
13
13
supports 'ubuntu' , '>= 12.04'
14
14
supports 'arch'
15
+ supports 'windows'
15
16
16
17
depends 'chef-vault'
18
+ depends 'chocolatey'
17
19
depends 'golang' , '~> 1.4'
18
20
depends 'firewall' , '~> 1.6'
19
21
depends 'libartifact' , '~> 1.3'
You can’t perform that action at this time.
0 commit comments