{"action":"created","issue":{"url":"https://api.github.com/repos/criteo-cookbooks/ms_dotnet/issues/32","repository_url":"https://api.github.com/repos/criteo-cookbooks/ms_dotnet","labels_url":"https://api.github.com/repos/criteo-cookbooks/ms_dotnet/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/criteo-cookbooks/ms_dotnet/issues/32/comments","events_url":"https://api.github.com/repos/criteo-cookbooks/ms_dotnet/issues/32/events","html_url":"https://github.com/criteo-cookbooks/ms_dotnet/issues/32","id":187660004,"number":32,"title":"Reboot after dependencies installation","user":{"login":"olivierlemasle","id":628140,"avatar_url":"https://avatars.githubusercontent.com/u/628140?v=3","gravatar_id":"","url":"https://api.github.com/users/olivierlemasle","html_url":"https://github.com/olivierlemasle","followers_url":"https://api.github.com/users/olivierlemasle/followers","following_url":"https://api.github.com/users/olivierlemasle/following{/other_user}","gists_url":"https://api.github.com/users/olivierlemasle/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierlemasle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierlemasle/subscriptions","organizations_url":"https://api.github.com/users/olivierlemasle/orgs","repos_url":"https://api.github.com/users/olivierlemasle/repos","events_url":"https://api.github.com/users/olivierlemasle/events{/privacy}","received_events_url":"https://api.github.com/users/olivierlemasle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-07T09:17:58Z","updated_at":"2016-11-23T11:24:36Z","closed_at":"2016-11-23T11:24:36Z","body":"How to reboot when a reboot is required between the installation of a dependency and the installation of .NET?\r\n\r\n(NB: issue #30 was specific to reboot after .NET installation)\r\n\r\nLast July, I've already had this issue (https://github.com/criteo-cookbooks/ms_dotnet/pull/27#issuecomment-233684470) but I solved it by using the Windows Reboot Handler provided by the windows cookbook, as suggested in commit message 7716fc98fcc.\r\n\r\nHowever, resource `windows_reboot` and reboot handler were removed from version 2.0.0 of the windows cookbook. `windows_reboot` can be replaced by the `reboot` resource in Chef 12.1+, but how to configure a reboot handler?\r\n\r\nI tried to update the `ms_dotnet` cookbook by:\r\n\r\n- using `reboot` resource (Chef 12.1+):\r\n\r\n      reboot ms_dotnet do\r\n        action :nothing\r\n      end\r\n\r\n- and adding\r\n\r\n      notifies :reboot_now, \"reboot[ms_dotnet]\", :immediately if reboot_pending?\r\n\r\n   to `windows_package`. However, `reboot_pending?` seems to always be `false`, even when the installation of `ndp46-kb3045557-x86-x64-allos-enu.exe` is explicitly rejected because of the lack of reboot after KB2919355 installation."},"comment":{"url":"https://api.github.com/repos/criteo-cookbooks/ms_dotnet/issues/comments/262489323","html_url":"https://github.com/criteo-cookbooks/ms_dotnet/issues/32#issuecomment-262489323","issue_url":"https://api.github.com/repos/criteo-cookbooks/ms_dotnet/issues/32","id":262489323,"user":{"login":"olivierlemasle","id":628140,"avatar_url":"https://avatars.githubusercontent.com/u/628140?v=3","gravatar_id":"","url":"https://api.github.com/users/olivierlemasle","html_url":"https://github.com/olivierlemasle","followers_url":"https://api.github.com/users/olivierlemasle/followers","following_url":"https://api.github.com/users/olivierlemasle/following{/other_user}","gists_url":"https://api.github.com/users/olivierlemasle/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierlemasle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierlemasle/subscriptions","organizations_url":"https://api.github.com/users/olivierlemasle/orgs","repos_url":"https://api.github.com/users/olivierlemasle/repos","events_url":"https://api.github.com/users/olivierlemasle/events{/privacy}","received_events_url":"https://api.github.com/users/olivierlemasle/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T11:24:36Z","updated_at":"2016-11-23T11:24:36Z","body":"Thanks @Annih, pull request #35 fixes my issue indeed."}}
{"actor":{"display_login":"olivierlemasle"}}