{"action":"created","comment":{"url":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/comments/32394293","id":32394293,"diff_hunk":"@@ -0,0 +1,53 @@\n+#\n+# Class: rjil::consul_alerts\n+#  This class to manage consul-alerts\n+#\n+#\n+\n+class rjil::jiocloud::consul::consul_alerts (\n+  $slack_url              = $::slack_url,\n+  $check_thresold         = '30',\n+  $slack_cluster_name     = 'consul-alerts',\n+  $slack_username         = 'WatchBot',\n+  $slack_channel          = 'consul-alerts',\n+) {\n+\n+  package { 'consul-alerts':\n+    ensure => present,\n+  }\n+\n+  Consul_kv {\n+    notify => Service['consul-alerts']\n+  }\n+\n+  if $slack_url {\n+    $enabled = 'true'\n+    consul_kv {\n+      'consul-alerts/config/notifiers/slack/url':          value => $slack_url;\n+    }\n+  } else {\n+    $enabled = 'false'\n+  }\n+  consul_kv {\n+    'consul-alerts/config/checks/enabled':               value => $enabled;\n+    'consul-alerts/config/notifiers/slack/enabled':      value => $enabled;\n+    'consul-alerts/config/checks/check_thresold':        value => $check_thresold;\n+    'consul-alerts/config/notifiers/slack/cluster_name': value => $slack_cluster_name;\n+    'consul-alerts/config/notifiers/slack/username':     value => $slack_username;\n+    'consul-alerts/config/notifiers/slack/channel':      value => $slack_channel;\n+  }\n+\n+  file { '/etc/init/consul-alerts.conf':\n+    owner   => 'root',\n+    group   => 'root',\n+    mode    => '0644',","path":"manifests/jiocloud/consul/consul_alerts.pp","position":43,"original_position":43,"commit_id":"109852b7c98685c88d93d93aab6f9dadb8fe8bcd","original_commit_id":"109852b7c98685c88d93d93aab6f9dadb8fe8bcd","user":{"login":"sorenh","id":160090,"avatar_url":"https://avatars.githubusercontent.com/u/160090?v=3","gravatar_id":"","url":"https://api.github.com/users/sorenh","html_url":"https://github.com/sorenh","followers_url":"https://api.github.com/users/sorenh/followers","following_url":"https://api.github.com/users/sorenh/following{/other_user}","gists_url":"https://api.github.com/users/sorenh/gists{/gist_id}","starred_url":"https://api.github.com/users/sorenh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorenh/subscriptions","organizations_url":"https://api.github.com/users/sorenh/orgs","repos_url":"https://api.github.com/users/sorenh/repos","events_url":"https://api.github.com/users/sorenh/events{/privacy}","received_events_url":"https://api.github.com/users/sorenh/received_events","type":"User","site_admin":false},"body":"Upstart jobs aren't executable.","created_at":"2015-06-15T06:34:48Z","updated_at":"2015-06-15T06:34:48Z","html_url":"https://github.com/JioCloud/puppet-rjil/pull/649#discussion_r32394293","pull_request_url":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/649","_links":{"self":{"href":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/comments/32394293"},"html":{"href":"https://github.com/JioCloud/puppet-rjil/pull/649#discussion_r32394293"},"pull_request":{"href":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/649"}}},"pull_request":{"url":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/649","id":37583984,"html_url":"https://github.com/JioCloud/puppet-rjil/pull/649","diff_url":"https://github.com/JioCloud/puppet-rjil/pull/649.diff","patch_url":"https://github.com/JioCloud/puppet-rjil/pull/649.patch","issue_url":"https://api.github.com/repos/JioCloud/puppet-rjil/issues/649","number":649,"state":"open","locked":false,"title":"Consul alerts","user":{"login":"bodepd","id":97123,"avatar_url":"https://avatars.githubusercontent.com/u/97123?v=3","gravatar_id":"","url":"https://api.github.com/users/bodepd","html_url":"https://github.com/bodepd","followers_url":"https://api.github.com/users/bodepd/followers","following_url":"https://api.github.com/users/bodepd/following{/other_user}","gists_url":"https://api.github.com/users/bodepd/gists{/gist_id}","starred_url":"https://api.github.com/users/bodepd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodepd/subscriptions","organizations_url":"https://api.github.com/users/bodepd/orgs","repos_url":"https://api.github.com/users/bodepd/repos","events_url":"https://api.github.com/users/bodepd/events{/privacy}","received_events_url":"https://api.github.com/users/bodepd/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-12T17:01:45Z","updated_at":"2015-06-15T06:34:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cde89acbaae23da596f6febad882598996745fc8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/649/commits","review_comments_url":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/649/comments","review_comment_url":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JioCloud/puppet-rjil/issues/649/comments","statuses_url":"https://api.github.com/repos/JioCloud/puppet-rjil/statuses/109852b7c98685c88d93d93aab6f9dadb8fe8bcd","head":{"label":"bodepd:consul_alerts","ref":"consul_alerts","sha":"109852b7c98685c88d93d93aab6f9dadb8fe8bcd","user":{"login":"bodepd","id":97123,"avatar_url":"https://avatars.githubusercontent.com/u/97123?v=3","gravatar_id":"","url":"https://api.github.com/users/bodepd","html_url":"https://github.com/bodepd","followers_url":"https://api.github.com/users/bodepd/followers","following_url":"https://api.github.com/users/bodepd/following{/other_user}","gists_url":"https://api.github.com/users/bodepd/gists{/gist_id}","starred_url":"https://api.github.com/users/bodepd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodepd/subscriptions","organizations_url":"https://api.github.com/users/bodepd/orgs","repos_url":"https://api.github.com/users/bodepd/repos","events_url":"https://api.github.com/users/bodepd/events{/privacy}","received_events_url":"https://api.github.com/users/bodepd/received_events","type":"User","site_admin":false},"repo":{"id":23507673,"name":"puppet-rjil","full_name":"bodepd/puppet-rjil","owner":{"login":"bodepd","id":97123,"avatar_url":"https://avatars.githubusercontent.com/u/97123?v=3","gravatar_id":"","url":"https://api.github.com/users/bodepd","html_url":"https://github.com/bodepd","followers_url":"https://api.github.com/users/bodepd/followers","following_url":"https://api.github.com/users/bodepd/following{/other_user}","gists_url":"https://api.github.com/users/bodepd/gists{/gist_id}","starred_url":"https://api.github.com/users/bodepd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodepd/subscriptions","organizations_url":"https://api.github.com/users/bodepd/orgs","repos_url":"https://api.github.com/users/bodepd/repos","events_url":"https://api.github.com/users/bodepd/events{/privacy}","received_events_url":"https://api.github.com/users/bodepd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bodepd/puppet-rjil","description":"","fork":true,"url":"https://api.github.com/repos/bodepd/puppet-rjil","forks_url":"https://api.github.com/repos/bodepd/puppet-rjil/forks","keys_url":"https://api.github.com/repos/bodepd/puppet-rjil/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bodepd/puppet-rjil/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bodepd/puppet-rjil/teams","hooks_url":"https://api.github.com/repos/bodepd/puppet-rjil/hooks","issue_events_url":"https://api.github.com/repos/bodepd/puppet-rjil/issues/events{/number}","events_url":"https://api.github.com/repos/bodepd/puppet-rjil/events","assignees_url":"https://api.github.com/repos/bodepd/puppet-rjil/assignees{/user}","branches_url":"https://api.github.com/repos/bodepd/puppet-rjil/branches{/branch}","tags_url":"https://api.github.com/repos/bodepd/puppet-rjil/tags","blobs_url":"https://api.github.com/repos/bodepd/puppet-rjil/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bodepd/puppet-rjil/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bodepd/puppet-rjil/git/refs{/sha}","trees_url":"https://api.github.com/repos/bodepd/puppet-rjil/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bodepd/puppet-rjil/statuses/{sha}","languages_url":"https://api.github.com/repos/bodepd/puppet-rjil/languages","stargazers_url":"https://api.github.com/repos/bodepd/puppet-rjil/stargazers","contributors_url":"https://api.github.com/repos/bodepd/puppet-rjil/contributors","subscribers_url":"https://api.github.com/repos/bodepd/puppet-rjil/subscribers","subscription_url":"https://api.github.com/repos/bodepd/puppet-rjil/subscription","commits_url":"https://api.github.com/repos/bodepd/puppet-rjil/commits{/sha}","git_commits_url":"https://api.github.com/repos/bodepd/puppet-rjil/git/commits{/sha}","comments_url":"https://api.github.com/repos/bodepd/puppet-rjil/comments{/number}","issue_comment_url":"https://api.github.com/repos/bodepd/puppet-rjil/issues/comments{/number}","contents_url":"https://api.github.com/repos/bodepd/puppet-rjil/contents/{+path}","compare_url":"https://api.github.com/repos/bodepd/puppet-rjil/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bodepd/puppet-rjil/merges","archive_url":"https://api.github.com/repos/bodepd/puppet-rjil/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bodepd/puppet-rjil/downloads","issues_url":"https://api.github.com/repos/bodepd/puppet-rjil/issues{/number}","pulls_url":"https://api.github.com/repos/bodepd/puppet-rjil/pulls{/number}","milestones_url":"https://api.github.com/repos/bodepd/puppet-rjil/milestones{/number}","notifications_url":"https://api.github.com/repos/bodepd/puppet-rjil/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bodepd/puppet-rjil/labels{/name}","releases_url":"https://api.github.com/repos/bodepd/puppet-rjil/releases{/id}","created_at":"2014-08-31T06:08:05Z","updated_at":"2015-04-26T15:53:05Z","pushed_at":"2015-06-15T04:24:16Z","git_url":"git://github.com/bodepd/puppet-rjil.git","ssh_url":"git@github.com:bodepd/puppet-rjil.git","clone_url":"https://github.com/bodepd/puppet-rjil.git","svn_url":"https://github.com/bodepd/puppet-rjil","homepage":null,"size":3934,"stargazers_count":0,"watchers_count":0,"language":"Puppet","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"JioCloud:master","ref":"master","sha":"1ec5b8a3b41a838e0ea5ac22b028c37ef78aea5e","user":{"login":"JioCloud","id":5500757,"avatar_url":"https://avatars.githubusercontent.com/u/5500757?v=3","gravatar_id":"","url":"https://api.github.com/users/JioCloud","html_url":"https://github.com/JioCloud","followers_url":"https://api.github.com/users/JioCloud/followers","following_url":"https://api.github.com/users/JioCloud/following{/other_user}","gists_url":"https://api.github.com/users/JioCloud/gists{/gist_id}","starred_url":"https://api.github.com/users/JioCloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JioCloud/subscriptions","organizations_url":"https://api.github.com/users/JioCloud/orgs","repos_url":"https://api.github.com/users/JioCloud/repos","events_url":"https://api.github.com/users/JioCloud/events{/privacy}","received_events_url":"https://api.github.com/users/JioCloud/received_events","type":"Organization","site_admin":false},"repo":{"id":16161513,"name":"puppet-rjil","full_name":"JioCloud/puppet-rjil","owner":{"login":"JioCloud","id":5500757,"avatar_url":"https://avatars.githubusercontent.com/u/5500757?v=3","gravatar_id":"","url":"https://api.github.com/users/JioCloud","html_url":"https://github.com/JioCloud","followers_url":"https://api.github.com/users/JioCloud/followers","following_url":"https://api.github.com/users/JioCloud/following{/other_user}","gists_url":"https://api.github.com/users/JioCloud/gists{/gist_id}","starred_url":"https://api.github.com/users/JioCloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JioCloud/subscriptions","organizations_url":"https://api.github.com/users/JioCloud/orgs","repos_url":"https://api.github.com/users/JioCloud/repos","events_url":"https://api.github.com/users/JioCloud/events{/privacy}","received_events_url":"https://api.github.com/users/JioCloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JioCloud/puppet-rjil","description":"Puppet scripts for managing JioCloud","fork":false,"url":"https://api.github.com/repos/JioCloud/puppet-rjil","forks_url":"https://api.github.com/repos/JioCloud/puppet-rjil/forks","keys_url":"https://api.github.com/repos/JioCloud/puppet-rjil/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JioCloud/puppet-rjil/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JioCloud/puppet-rjil/teams","hooks_url":"https://api.github.com/repos/JioCloud/puppet-rjil/hooks","issue_events_url":"https://api.github.com/repos/JioCloud/puppet-rjil/issues/events{/number}","events_url":"https://api.github.com/repos/JioCloud/puppet-rjil/events","assignees_url":"https://api.github.com/repos/JioCloud/puppet-rjil/assignees{/user}","branches_url":"https://api.github.com/repos/JioCloud/puppet-rjil/branches{/branch}","tags_url":"https://api.github.com/repos/JioCloud/puppet-rjil/tags","blobs_url":"https://api.github.com/repos/JioCloud/puppet-rjil/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JioCloud/puppet-rjil/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JioCloud/puppet-rjil/git/refs{/sha}","trees_url":"https://api.github.com/repos/JioCloud/puppet-rjil/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JioCloud/puppet-rjil/statuses/{sha}","languages_url":"https://api.github.com/repos/JioCloud/puppet-rjil/languages","stargazers_url":"https://api.github.com/repos/JioCloud/puppet-rjil/stargazers","contributors_url":"https://api.github.com/repos/JioCloud/puppet-rjil/contributors","subscribers_url":"https://api.github.com/repos/JioCloud/puppet-rjil/subscribers","subscription_url":"https://api.github.com/repos/JioCloud/puppet-rjil/subscription","commits_url":"https://api.github.com/repos/JioCloud/puppet-rjil/commits{/sha}","git_commits_url":"https://api.github.com/repos/JioCloud/puppet-rjil/git/commits{/sha}","comments_url":"https://api.github.com/repos/JioCloud/puppet-rjil/comments{/number}","issue_comment_url":"https://api.github.com/repos/JioCloud/puppet-rjil/issues/comments{/number}","contents_url":"https://api.github.com/repos/JioCloud/puppet-rjil/contents/{+path}","compare_url":"https://api.github.com/repos/JioCloud/puppet-rjil/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JioCloud/puppet-rjil/merges","archive_url":"https://api.github.com/repos/JioCloud/puppet-rjil/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JioCloud/puppet-rjil/downloads","issues_url":"https://api.github.com/repos/JioCloud/puppet-rjil/issues{/number}","pulls_url":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls{/number}","milestones_url":"https://api.github.com/repos/JioCloud/puppet-rjil/milestones{/number}","notifications_url":"https://api.github.com/repos/JioCloud/puppet-rjil/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JioCloud/puppet-rjil/labels{/name}","releases_url":"https://api.github.com/repos/JioCloud/puppet-rjil/releases{/id}","created_at":"2014-01-23T03:45:55Z","updated_at":"2015-05-08T12:08:00Z","pushed_at":"2015-06-15T06:01:26Z","git_url":"git://github.com/JioCloud/puppet-rjil.git","ssh_url":"git@github.com:JioCloud/puppet-rjil.git","clone_url":"https://github.com/JioCloud/puppet-rjil.git","svn_url":"https://github.com/JioCloud/puppet-rjil","homepage":"","size":6067,"stargazers_count":1,"watchers_count":1,"language":"Puppet","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":133,"forks":37,"open_issues":133,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/649"},"html":{"href":"https://github.com/JioCloud/puppet-rjil/pull/649"},"issue":{"href":"https://api.github.com/repos/JioCloud/puppet-rjil/issues/649"},"comments":{"href":"https://api.github.com/repos/JioCloud/puppet-rjil/issues/649/comments"},"review_comments":{"href":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/649/comments"},"review_comment":{"href":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/649/commits"},"statuses":{"href":"https://api.github.com/repos/JioCloud/puppet-rjil/statuses/109852b7c98685c88d93d93aab6f9dadb8fe8bcd"}}}}