{"action":"created","issue":{"url":"https://api.github.com/repos/puppetlabs/puppetlabs-git/issues/53","labels_url":"https://api.github.com/repos/puppetlabs/puppetlabs-git/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-git/issues/53/comments","events_url":"https://api.github.com/repos/puppetlabs/puppetlabs-git/issues/53/events","html_url":"https://github.com/puppetlabs/puppetlabs-git/pull/53","id":56685838,"number":53,"title":"Adding if-not-defined to package definition","user":{"login":"tfhartmann","id":1078704,"avatar_url":"https://avatars.githubusercontent.com/u/1078704?v=3","gravatar_id":"","url":"https://api.github.com/users/tfhartmann","html_url":"https://github.com/tfhartmann","followers_url":"https://api.github.com/users/tfhartmann/followers","following_url":"https://api.github.com/users/tfhartmann/following{/other_user}","gists_url":"https://api.github.com/users/tfhartmann/gists{/gist_id}","starred_url":"https://api.github.com/users/tfhartmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfhartmann/subscriptions","organizations_url":"https://api.github.com/users/tfhartmann/orgs","repos_url":"https://api.github.com/users/tfhartmann/repos","events_url":"https://api.github.com/users/tfhartmann/events{/privacy}","received_events_url":"https://api.github.com/users/tfhartmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-02-05T15:38:06Z","updated_at":"2015-02-11T14:59:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/puppetlabs/puppetlabs-git/pulls/53","html_url":"https://github.com/puppetlabs/puppetlabs-git/pull/53","diff_url":"https://github.com/puppetlabs/puppetlabs-git/pull/53.diff","patch_url":"https://github.com/puppetlabs/puppetlabs-git/pull/53.patch"},"body":"This module is often a dependency in other module, and can often conflict with other modules declaration of the relatively common declaration of package named 'git' by adding if ! defined it should make this module a bit friendlier when mixing and matching modules.\r\n\r\n```Shell\r\nWarning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults\r\nError: Duplicate declaration: Package[git] is already declared in file /vagrant/modules/stash/manifests/install.pp:52; cannot redeclare at /vagrant/modules/git/manifests/init.pp:14 on node vagrant.dev\r\nError: Duplicate declaration: Package[git] is already declared in file /vagrant/modules/stash/manifests/install.pp:52; cannot redeclare at /vagrant/modules/git/manifests/init.pp:14 on node vagrant.dev\r\n```"},"comment":{"url":"https://api.github.com/repos/puppetlabs/puppetlabs-git/issues/comments/73894492","html_url":"https://github.com/puppetlabs/puppetlabs-git/pull/53#issuecomment-73894492","issue_url":"https://api.github.com/repos/puppetlabs/puppetlabs-git/issues/53","id":73894492,"user":{"login":"tfhartmann","id":1078704,"avatar_url":"https://avatars.githubusercontent.com/u/1078704?v=3","gravatar_id":"","url":"https://api.github.com/users/tfhartmann","html_url":"https://github.com/tfhartmann","followers_url":"https://api.github.com/users/tfhartmann/followers","following_url":"https://api.github.com/users/tfhartmann/following{/other_user}","gists_url":"https://api.github.com/users/tfhartmann/gists{/gist_id}","starred_url":"https://api.github.com/users/tfhartmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfhartmann/subscriptions","organizations_url":"https://api.github.com/users/tfhartmann/orgs","repos_url":"https://api.github.com/users/tfhartmann/repos","events_url":"https://api.github.com/users/tfhartmann/events{/privacy}","received_events_url":"https://api.github.com/users/tfhartmann/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T14:59:41Z","updated_at":"2015-02-11T14:59:41Z","body":"@juniorsysadmin that method is also easier to write tests for! :metal: "}}