Skip to content

Commit

Permalink
Merge pull request #21 from criteo-cookbooks/architecture
Browse files Browse the repository at this point in the history
Support chef 12.8.1 64bits
  • Loading branch information
kamaradclimber committed Apr 1, 2016
2 parents 179ca0d + 3edf40d commit c6adeb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions recipes/configure.rb
Expand Up @@ -95,11 +95,11 @@
service 'wuauserv' do
supports status: true, start: true, stop: true, restart: true
action [:start, :enable]
notifies :run, 'execute[Force Windows update detection cycle]', :immediately
notifies :run, 'powershell_script[Force Windows update detection cycle]', :immediately
end

# Force detection in case the client-side update group changed
execute 'Force Windows update detection cycle' do
command 'c:\windows\sysnative\wuauclt.exe /ResetAuthorization /DetectNow'
powershell_script 'Force Windows update detection cycle' do
code 'c:\windows\System32\wuauclt.exe /ResetAuthorization /DetectNow'
action :nothing
end
2 changes: 1 addition & 1 deletion spec/recipes/configure_spec.rb
Expand Up @@ -34,7 +34,7 @@
expect(chef_run).to enable_service(WUAUSERV_SERVICE_NAME)

resource = chef_run.service WUAUSERV_SERVICE_NAME
notify_name = "execute[#{DETECTION_EXECUTE_NAME}]"
notify_name = "powershell_script[#{DETECTION_EXECUTE_NAME}]"
expect(resource).to notify(notify_name).to(:run).immediately
end
end
Expand Down

0 comments on commit c6adeb5

Please sign in to comment.