{"action":"opened","issue":{"url":"https://api.github.com/repos/chef-cookbooks/push-jobs/issues/76","repository_url":"https://api.github.com/repos/chef-cookbooks/push-jobs","labels_url":"https://api.github.com/repos/chef-cookbooks/push-jobs/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/push-jobs/issues/76/comments","events_url":"https://api.github.com/repos/chef-cookbooks/push-jobs/issues/76/events","html_url":"https://github.com/chef-cookbooks/push-jobs/issues/76","id":151747485,"number":76,"title":"How are you supposed to deploy in environments with windows and linux?","user":{"login":"spuder","id":242382,"avatar_url":"https://avatars.githubusercontent.com/u/242382?v=3","gravatar_id":"","url":"https://api.github.com/users/spuder","html_url":"https://github.com/spuder","followers_url":"https://api.github.com/users/spuder/followers","following_url":"https://api.github.com/users/spuder/following{/other_user}","gists_url":"https://api.github.com/users/spuder/gists{/gist_id}","starred_url":"https://api.github.com/users/spuder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spuder/subscriptions","organizations_url":"https://api.github.com/users/spuder/orgs","repos_url":"https://api.github.com/users/spuder/repos","events_url":"https://api.github.com/users/spuder/events{/privacy}","received_events_url":"https://api.github.com/users/spuder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-28T21:27:16Z","updated_at":"2016-04-28T21:27:16Z","closed_at":null,"body":"For windows nodes, the cookbook requires that 2 attributes are set\r\n\r\n    node.default['push_jobs']['package_url'] = \"http://www.example.com/pkgs/opscode-push-jobs-client-windows-1.1.5-1.windows.msi\"\r\n    node.default['push_jobs']['package_checksum'] = \"a-sha256-checksum\"\r\n\r\n\r\nThe problem with this design is that most people don't have a role/environment/cookbook that is os specific. That means that linux nodes will get the same attribute as the windows nodes. \r\n\r\n## Purposed solution\r\n\r\nAdd another level of hierarchy that allows for both windows and linux download urls.\r\n\r\n```\r\nnode.default['push_jobs']['windows']['package_url'] = \".....\"\r\nnode.default['push_jobs']['windows']['package_checksum'] = \"....\"\r\nnode.default['push_jobs']['linux']['package_url'] = \".....\"\r\nnode.default['push_jobs']['linux']['package_checksum'] = \"....\"\r\n```"}}