{"action":"created","issue":{"url":"https://api.github.com/repos/ptqa/chef-scollector/issues/5","labels_url":"https://api.github.com/repos/ptqa/chef-scollector/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/ptqa/chef-scollector/issues/5/comments","events_url":"https://api.github.com/repos/ptqa/chef-scollector/issues/5/events","html_url":"https://github.com/ptqa/chef-scollector/pull/5","id":98134899,"number":5,"title":"Add Support for CentOS 7+","user":{"login":"alexmbird","id":691831,"avatar_url":"https://avatars.githubusercontent.com/u/691831?v=3","gravatar_id":"","url":"https://api.github.com/users/alexmbird","html_url":"https://github.com/alexmbird","followers_url":"https://api.github.com/users/alexmbird/followers","following_url":"https://api.github.com/users/alexmbird/following{/other_user}","gists_url":"https://api.github.com/users/alexmbird/gists{/gist_id}","starred_url":"https://api.github.com/users/alexmbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexmbird/subscriptions","organizations_url":"https://api.github.com/users/alexmbird/orgs","repos_url":"https://api.github.com/users/alexmbird/repos","events_url":"https://api.github.com/users/alexmbird/events{/privacy}","received_events_url":"https://api.github.com/users/alexmbird/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-30T10:23:36Z","updated_at":"2015-07-31T08:12:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ptqa/chef-scollector/pulls/5","html_url":"https://github.com/ptqa/chef-scollector/pull/5","diff_url":"https://github.com/ptqa/chef-scollector/pull/5.diff","patch_url":"https://github.com/ptqa/chef-scollector/pull/5.patch"},"body":"I've added support for installing scollector on CentOS 7 and above.  It drops a systemd service definition into place and starts scollector.\r\n\r\nRight now it's guarded with a case statement that it'll __only__ run for CentOS 7 & above.  In all other cases it falls back to your old runit method.  We may wish to add cases for other distributions that have moved to systemd."},"comment":{"url":"https://api.github.com/repos/ptqa/chef-scollector/issues/comments/126603920","html_url":"https://github.com/ptqa/chef-scollector/pull/5#issuecomment-126603920","issue_url":"https://api.github.com/repos/ptqa/chef-scollector/issues/5","id":126603920,"user":{"login":"ptqa","id":8643966,"avatar_url":"https://avatars.githubusercontent.com/u/8643966?v=3","gravatar_id":"","url":"https://api.github.com/users/ptqa","html_url":"https://github.com/ptqa","followers_url":"https://api.github.com/users/ptqa/followers","following_url":"https://api.github.com/users/ptqa/following{/other_user}","gists_url":"https://api.github.com/users/ptqa/gists{/gist_id}","starred_url":"https://api.github.com/users/ptqa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptqa/subscriptions","organizations_url":"https://api.github.com/users/ptqa/orgs","repos_url":"https://api.github.com/users/ptqa/repos","events_url":"https://api.github.com/users/ptqa/events{/privacy}","received_events_url":"https://api.github.com/users/ptqa/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T08:12:18Z","updated_at":"2015-07-31T08:12:18Z","body":"> But for Ubuntu support you've used a runit_service and I need a way to switch between them.\r\nIt's not a big deal actually. You can do something like:\r\n\r\n    notifies :restart, node['scollector']['init_style'] == 'runit' ? 'runit_service[scollector]' : 'service[scollector]'\r\n\r\n"}}