{"action":"created","issue":{"url":"https://api.github.com/repos/chef-cookbooks/iis/issues/203","repository_url":"https://api.github.com/repos/chef-cookbooks/iis","labels_url":"https://api.github.com/repos/chef-cookbooks/iis/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/iis/issues/203/comments","events_url":"https://api.github.com/repos/chef-cookbooks/iis/issues/203/events","html_url":"https://github.com/chef-cookbooks/iis/issues/203","id":100769597,"number":203,"title":"Default recipe fails from Test Kitchen","user":{"login":"tpetchel","id":7142397,"avatar_url":"https://avatars.githubusercontent.com/u/7142397?v=3","gravatar_id":"","url":"https://api.github.com/users/tpetchel","html_url":"https://github.com/tpetchel","followers_url":"https://api.github.com/users/tpetchel/followers","following_url":"https://api.github.com/users/tpetchel/following{/other_user}","gists_url":"https://api.github.com/users/tpetchel/gists{/gist_id}","starred_url":"https://api.github.com/users/tpetchel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpetchel/subscriptions","organizations_url":"https://api.github.com/users/tpetchel/orgs","repos_url":"https://api.github.com/users/tpetchel/repos","events_url":"https://api.github.com/users/tpetchel/events{/privacy}","received_events_url":"https://api.github.com/users/tpetchel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef-cookbooks/iis/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-08-13T13:30:29Z","updated_at":"2016-05-03T18:55:37Z","closed_at":null,"body":"The default recipe fails from both kitchen-vagrant and kitchen-ec2 drivers on Windows Server 2012 R2.\r\n\r\nThis gist captures the important parts from the kitchen-vagrant path:\r\nhttps://gist.github.com/tpetchel/6ba79295ce7af4df563c\r\n\r\nThe gist shows the full `kitchen converge` run, but to highlight the error:\r\n\r\n```\r\n           ================================================================================\r\n\r\n           SystemCallError\r\n           ---------------\r\n           The specified service does not exist as an installed service. - OpenService: The specified service does not exist as an installed service.\r\n```\r\n\r\nI'm using this [Packer template](https://github.com/mwrock/packer-templates) to create the Vagrant box. I'm also using the [chef-zero-scheduled-task](https://github.com/smurawski/chef-zero-scheduled-task) provisioner. I believe the repo still fails if you use the standard `chef_zero` provisioner.\r\n\r\nI tried bootstrapping the kitchen-ec2 instance, and the recipe fails on that path as well. I'm not sure whether that's due to the way kitchen-ec2 creates the instance, or if the default recipe is broken in all cases.\r\n\r\nMy work-around is to use `powershell_script` and `service` to start IIS.\r\n\r\n```\r\npowershell_script 'Install IIS' do\r\n  code 'Add-WindowsFeature Web-Server'\r\n  guard_interpreter :powershell_script\r\n  not_if \"(Get-WindowsFeature -Name Web-Server).Installed\"\r\nend\r\n\r\nservice 'w3svc' do\r\n  action [:enable, :start]\r\nend\r\n```"},"comment":{"url":"https://api.github.com/repos/chef-cookbooks/iis/issues/comments/216629586","html_url":"https://github.com/chef-cookbooks/iis/issues/203#issuecomment-216629586","issue_url":"https://api.github.com/repos/chef-cookbooks/iis/issues/203","id":216629586,"user":{"login":"syphon7","id":3060031,"avatar_url":"https://avatars.githubusercontent.com/u/3060031?v=3","gravatar_id":"","url":"https://api.github.com/users/syphon7","html_url":"https://github.com/syphon7","followers_url":"https://api.github.com/users/syphon7/followers","following_url":"https://api.github.com/users/syphon7/following{/other_user}","gists_url":"https://api.github.com/users/syphon7/gists{/gist_id}","starred_url":"https://api.github.com/users/syphon7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syphon7/subscriptions","organizations_url":"https://api.github.com/users/syphon7/orgs","repos_url":"https://api.github.com/users/syphon7/repos","events_url":"https://api.github.com/users/syphon7/events{/privacy}","received_events_url":"https://api.github.com/users/syphon7/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T18:55:37Z","updated_at":"2016-05-03T18:55:37Z","body":"Has anyone found a solution to this issue? I am having the same problem"}}