{"action":"created","comment":{"url":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/comments/44262084","id":44262084,"diff_hunk":"@@ -0,0 +1,162 @@\n+class apt::params {\n+\n+  if $::osfamily != 'Debian' {\n+    fail('This module only works on Debian or derivatives like Ubuntu')\n+  }\n+\n+  # prior to puppet 3.5.0, defined couldn't test if a variable was defined\n+  # strict variables wasn't added until 3.5.0, so this should be fine.\n+  if ! $::settings::strict_variables {\n+    $xfacts = {\n+      'lsbdistcodename'     => $::lsbdistcodename,\n+      'lsbdistrelease'      => $::lsbdistrelease,\n+      'lsbmajdistrelease'   => $::lsbmajdistrelease,\n+      'lsbdistdescription'  => $::lsbdistdescription,\n+      'lsbminordistrelease' => $::lsbminordistrelease,\n+      'lsbdistid'           => $::lsbdistid,\n+    }\n+  } else {\n+    # Strict variables facts lookup compatibility\n+    $xfacts = {\n+      'lsbdistcodename' => defined('$lsbdistcodename') ? {\n+        true    => $::lsbdistcodename,\n+        default => undef,\n+      },\n+      'lsbdistrelease' => defined('$lsbdistrelease') ? {\n+        true    => $::lsbdistrelease,\n+        default => undef,\n+      },\n+      'lsbmajdistrelease' => defined('$lsbmajdistrelease') ? {\n+        true    => $::lsbmajdistrelease,\n+        default => undef,\n+      },\n+      'lsbdistdescription' => defined('$lsbdistdescription') ? {\n+        true    => $::lsbdistdescription,\n+        default => undef,\n+      },\n+      'lsbminordistrelease' => defined('$lsbminordistrelease') ? {\n+        true    => $::lsbminordistrelease,\n+        default => undef,\n+      },\n+      'lsbdistid' => defined('$lsbdistid') ? {\n+        true    => $::lsbdistid,\n+        default => undef,\n+      },\n+    }\n+  }\n+\n+  $root           = '/etc/apt'\n+  $provider       = '/usr/bin/apt-get'\n+  $sources_list   = \"${root}/sources.list\"\n+  $sources_list_d = \"${root}/sources.list.d\"\n+  $conf_d         = \"${root}/apt.conf.d\"\n+  $preferences    = \"${root}/preferences\"\n+  $preferences_d  = \"${root}/preferences.d\"\n+  $keyserver      = 'keyserver.ubuntu.com'\n+\n+  $config_files = {\n+    'conf'   => {\n+      'path' => $conf_d,\n+      'ext'  => '',\n+    },\n+    'pref'   => {\n+      'path' => $preferences_d,\n+      'ext'  => '.pref',\n+    },\n+    'list'   => {\n+      'path' => $sources_list_d,\n+      'ext'  => '.list',\n+    }\n+  }\n+\n+  $update_defaults = {\n+    'frequency' => 'reluctantly',\n+    'timeout'   => undef,\n+    'tries'     => undef,\n+  }\n+\n+  $proxy_defaults = {\n+    'ensure' => undef,\n+    'host'   => undef,\n+    'port'   => 8080,\n+    'https'  => false,\n+  }\n+\n+  $purge_defaults = {\n+    'sources.list'   => false,\n+    'sources.list.d' => false,\n+    'preferences'    => false,\n+    'preferences.d'  => false,\n+  }\n+\n+  $source_key_defaults = {\n+    'server'  => $keyserver,\n+    'options' => 'http-proxy=$http_proxy',\n+    'content' => undef,\n+    'source'  => undef,\n+  }\n+\n+  $include_defaults = {\n+    'deb' => true,\n+    'src' => false,\n+  }\n+\n+  case $xfacts['lsbdistid'] {\n+    'debian': {\n+      case $xfacts['lsbdistcodename'] {\n+        'squeeze': {\n+          $backports = {\n+            'location' => 'http://httpredir.debian.org/debian-backports',\n+            'key'      => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',\n+            'repos'    => 'main contrib non-free',\n+          }\n+        }\n+        default: {\n+          $backports = {\n+            'location' => 'http://httpredir.debian.org/debian',\n+            'key'      => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',\n+            'repos'    => 'main contrib non-free',\n+          }\n+        }\n+      }\n+\n+      $ppa_options = undef\n+      $ppa_package = undef\n+\n+    }\n+    'ubuntu': {\n+      $backports = {\n+        'location' => 'http://archive.ubuntu.com/ubuntu',\n+        'key'      => '630239CC130E1A7FD81A27B140976EAF437D05B5',\n+        'repos'    => 'main universe multiverse restricted',\n+      }\n+\n+      case $xfacts['lsbdistcodename'] {\n+        'lucid': {\n+          $ppa_options        = undef\n+          $ppa_package        = 'python-software-properties'\n+        }\n+        'precise': {\n+          $ppa_options        = '-y'\n+          $ppa_package        = 'python-software-properties'\n+        }\n+        'trusty', 'utopic', 'vivid': {\n+          $ppa_options        = '-y'\n+          $ppa_package        = 'software-properties-common'\n+        }\n+        default: {\n+          $ppa_options        = '-y'\n+          $ppa_package        = 'python-software-properties'\n+        }\n+      }\n+    }\n+    undef: {\n+      fail('Unable to determine lsbdistid, please install lsb-release first')\n+    }\n+    default: {\n+      $ppa_options = undef\n+      $ppa_package = undef\n+      $backports   = undef\n+    }\n+  }\n+}","path":"manifests/apt/manifests/params.pp","position":162,"original_position":162,"commit_id":"9bbcdfcfb689364247cfa8dc4dde7d74326c7d8d","original_commit_id":"9bbcdfcfb689364247cfa8dc4dde7d74326c7d8d","user":{"login":"anshprat","id":333902,"avatar_url":"https://avatars.githubusercontent.com/u/333902?v=3","gravatar_id":"","url":"https://api.github.com/users/anshprat","html_url":"https://github.com/anshprat","followers_url":"https://api.github.com/users/anshprat/followers","following_url":"https://api.github.com/users/anshprat/following{/other_user}","gists_url":"https://api.github.com/users/anshprat/gists{/gist_id}","starred_url":"https://api.github.com/users/anshprat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anshprat/subscriptions","organizations_url":"https://api.github.com/users/anshprat/orgs","repos_url":"https://api.github.com/users/anshprat/repos","events_url":"https://api.github.com/users/anshprat/events{/privacy}","received_events_url":"https://api.github.com/users/anshprat/received_events","type":"User","site_admin":false},"body":"Same as above, this file is not required in here.","created_at":"2015-11-09T10:54:48Z","updated_at":"2015-11-09T10:54:48Z","html_url":"https://github.com/JioCloud/puppet-rjil/pull/842#discussion_r44262084","pull_request_url":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/842","_links":{"self":{"href":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/comments/44262084"},"html":{"href":"https://github.com/JioCloud/puppet-rjil/pull/842#discussion_r44262084"},"pull_request":{"href":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/842"}}},"pull_request":{"url":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/842","id":50108138,"html_url":"https://github.com/JioCloud/puppet-rjil/pull/842","diff_url":"https://github.com/JioCloud/puppet-rjil/pull/842.diff","patch_url":"https://github.com/JioCloud/puppet-rjil/pull/842.patch","issue_url":"https://api.github.com/repos/JioCloud/puppet-rjil/issues/842","number":842,"state":"open","locked":false,"title":"adding puppet-omd","user":{"login":"bhavinajmera","id":15028500,"avatar_url":"https://avatars.githubusercontent.com/u/15028500?v=3","gravatar_id":"","url":"https://api.github.com/users/bhavinajmera","html_url":"https://github.com/bhavinajmera","followers_url":"https://api.github.com/users/bhavinajmera/followers","following_url":"https://api.github.com/users/bhavinajmera/following{/other_user}","gists_url":"https://api.github.com/users/bhavinajmera/gists{/gist_id}","starred_url":"https://api.github.com/users/bhavinajmera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhavinajmera/subscriptions","organizations_url":"https://api.github.com/users/bhavinajmera/orgs","repos_url":"https://api.github.com/users/bhavinajmera/repos","events_url":"https://api.github.com/users/bhavinajmera/events{/privacy}","received_events_url":"https://api.github.com/users/bhavinajmera/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-09T10:51:52Z","updated_at":"2015-11-09T10:54:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb16d65fb9ee348ef2dc4e04d925bcb5df053d1b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/842/commits","review_comments_url":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/842/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/842/comments","statuses_url":"https://api.github.com/repos/JioCloud/puppet-rjil/statuses/9bbcdfcfb689364247cfa8dc4dde7d74326c7d8d","head":{"label":"bhavinajmera:monitoring","ref":"monitoring","sha":"9bbcdfcfb689364247cfa8dc4dde7d74326c7d8d","user":{"login":"bhavinajmera","id":15028500,"avatar_url":"https://avatars.githubusercontent.com/u/15028500?v=3","gravatar_id":"","url":"https://api.github.com/users/bhavinajmera","html_url":"https://github.com/bhavinajmera","followers_url":"https://api.github.com/users/bhavinajmera/followers","following_url":"https://api.github.com/users/bhavinajmera/following{/other_user}","gists_url":"https://api.github.com/users/bhavinajmera/gists{/gist_id}","starred_url":"https://api.github.com/users/bhavinajmera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhavinajmera/subscriptions","organizations_url":"https://api.github.com/users/bhavinajmera/orgs","repos_url":"https://api.github.com/users/bhavinajmera/repos","events_url":"https://api.github.com/users/bhavinajmera/events{/privacy}","received_events_url":"https://api.github.com/users/bhavinajmera/received_events","type":"User","site_admin":false},"repo":{"id":45089033,"name":"puppet-rjil","full_name":"bhavinajmera/puppet-rjil","owner":{"login":"bhavinajmera","id":15028500,"avatar_url":"https://avatars.githubusercontent.com/u/15028500?v=3","gravatar_id":"","url":"https://api.github.com/users/bhavinajmera","html_url":"https://github.com/bhavinajmera","followers_url":"https://api.github.com/users/bhavinajmera/followers","following_url":"https://api.github.com/users/bhavinajmera/following{/other_user}","gists_url":"https://api.github.com/users/bhavinajmera/gists{/gist_id}","starred_url":"https://api.github.com/users/bhavinajmera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhavinajmera/subscriptions","organizations_url":"https://api.github.com/users/bhavinajmera/orgs","repos_url":"https://api.github.com/users/bhavinajmera/repos","events_url":"https://api.github.com/users/bhavinajmera/events{/privacy}","received_events_url":"https://api.github.com/users/bhavinajmera/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bhavinajmera/puppet-rjil","description":"Puppet scripts for managing JioCloud","fork":true,"url":"https://api.github.com/repos/bhavinajmera/puppet-rjil","forks_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/forks","keys_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/teams","hooks_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/hooks","issue_events_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/issues/events{/number}","events_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/events","assignees_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/assignees{/user}","branches_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/branches{/branch}","tags_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/tags","blobs_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/git/refs{/sha}","trees_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/statuses/{sha}","languages_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/languages","stargazers_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/stargazers","contributors_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/contributors","subscribers_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/subscribers","subscription_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/subscription","commits_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/commits{/sha}","git_commits_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/git/commits{/sha}","comments_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/comments{/number}","issue_comment_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/issues/comments{/number}","contents_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/contents/{+path}","compare_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/merges","archive_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/downloads","issues_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/issues{/number}","pulls_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/pulls{/number}","milestones_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/milestones{/number}","notifications_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/labels{/name}","releases_url":"https://api.github.com/repos/bhavinajmera/puppet-rjil/releases{/id}","created_at":"2015-10-28T04:34:47Z","updated_at":"2015-10-28T04:34:48Z","pushed_at":"2015-11-09T10:51:09Z","git_url":"git://github.com/bhavinajmera/puppet-rjil.git","ssh_url":"git@github.com:bhavinajmera/puppet-rjil.git","clone_url":"https://github.com/bhavinajmera/puppet-rjil.git","svn_url":"https://github.com/bhavinajmera/puppet-rjil","homepage":"","size":1635,"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":"74962cbe448adf4eece8ff8d46db6b82142289bc","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-10-05T06:56:17Z","pushed_at":"2015-11-09T10:51:53Z","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":9794,"stargazers_count":2,"watchers_count":2,"language":"Puppet","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":65,"mirror_url":null,"open_issues_count":184,"forks":65,"open_issues":184,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/842"},"html":{"href":"https://github.com/JioCloud/puppet-rjil/pull/842"},"issue":{"href":"https://api.github.com/repos/JioCloud/puppet-rjil/issues/842"},"comments":{"href":"https://api.github.com/repos/JioCloud/puppet-rjil/issues/842/comments"},"review_comments":{"href":"https://api.github.com/repos/JioCloud/puppet-rjil/pulls/842/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/842/commits"},"statuses":{"href":"https://api.github.com/repos/JioCloud/puppet-rjil/statuses/9bbcdfcfb689364247cfa8dc4dde7d74326c7d8d"}}}}