{"action":"closed","issue":{"url":"https://api.github.com/repos/claranet/puppet-newrelic/issues/11","repository_url":"https://api.github.com/repos/claranet/puppet-newrelic","labels_url":"https://api.github.com/repos/claranet/puppet-newrelic/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/claranet/puppet-newrelic/issues/11/comments","events_url":"https://api.github.com/repos/claranet/puppet-newrelic/issues/11/events","html_url":"https://github.com/claranet/puppet-newrelic/issues/11","id":262693715,"number":11,"title":"Missing facts referenced by infra.pp when using Ubuntu 14.04 AWS AMI ","user":{"login":"waoliveros","id":6287163,"avatar_url":"https://avatars1.githubusercontent.com/u/6287163?v=4","gravatar_id":"","url":"https://api.github.com/users/waoliveros","html_url":"https://github.com/waoliveros","followers_url":"https://api.github.com/users/waoliveros/followers","following_url":"https://api.github.com/users/waoliveros/following{/other_user}","gists_url":"https://api.github.com/users/waoliveros/gists{/gist_id}","starred_url":"https://api.github.com/users/waoliveros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waoliveros/subscriptions","organizations_url":"https://api.github.com/users/waoliveros/orgs","repos_url":"https://api.github.com/users/waoliveros/repos","events_url":"https://api.github.com/users/waoliveros/events{/privacy}","received_events_url":"https://api.github.com/users/waoliveros/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"craigwatson","id":1749345,"avatar_url":"https://avatars2.githubusercontent.com/u/1749345?v=4","gravatar_id":"","url":"https://api.github.com/users/craigwatson","html_url":"https://github.com/craigwatson","followers_url":"https://api.github.com/users/craigwatson/followers","following_url":"https://api.github.com/users/craigwatson/following{/other_user}","gists_url":"https://api.github.com/users/craigwatson/gists{/gist_id}","starred_url":"https://api.github.com/users/craigwatson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigwatson/subscriptions","organizations_url":"https://api.github.com/users/craigwatson/orgs","repos_url":"https://api.github.com/users/craigwatson/repos","events_url":"https://api.github.com/users/craigwatson/events{/privacy}","received_events_url":"https://api.github.com/users/craigwatson/received_events","type":"User","site_admin":false},"assignees":[{"login":"craigwatson","id":1749345,"avatar_url":"https://avatars2.githubusercontent.com/u/1749345?v=4","gravatar_id":"","url":"https://api.github.com/users/craigwatson","html_url":"https://github.com/craigwatson","followers_url":"https://api.github.com/users/craigwatson/followers","following_url":"https://api.github.com/users/craigwatson/following{/other_user}","gists_url":"https://api.github.com/users/craigwatson/gists{/gist_id}","starred_url":"https://api.github.com/users/craigwatson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigwatson/subscriptions","organizations_url":"https://api.github.com/users/craigwatson/orgs","repos_url":"https://api.github.com/users/craigwatson/repos","events_url":"https://api.github.com/users/craigwatson/events{/privacy}","received_events_url":"https://api.github.com/users/craigwatson/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-10-04T07:39:20Z","updated_at":"2017-10-04T08:52:07Z","closed_at":"2017-10-04T08:52:07Z","author_association":"NONE","body":"<!--\r\nThank you for contributing to this project!\r\n\r\n- This project has a Contributor Code of Conduct: https://voxpupuli.org/coc/\r\n- Please check that here is no existing issue or PR that addresses your problem.\r\n- Please fill the following form to enable us to help you.\r\n- Our vulnerabilities reporting process is at https://voxpupuli.org/security/\r\n\r\n-->\r\n\r\n## Affected Puppet, Ruby, OS and module versions/distributions\r\n\r\n- Puppet: 4.10.8\r\n- Ruby:\r\n- Distribution: Ubuntu 14.04 AWS AMI\r\n- Module version: 2.0.0\r\n\r\n## How to reproduce (e.g Puppet code you use)\r\n\r\nI am installing the module using \r\n`include newrelic` \r\nwith hiera params for \r\n```newrelic::license_key\r\nnewrelic::enable_php_agent\r\nnewrelic::agent::php::ini_settings:\r\n  appname\r\n  daemon.loglevel\r\nnewrelic::php_conf_dir\r\nnewrelic::php_purge_files\r\n```\r\n\r\nIt seems like infra.pp:32 looks into `$facts['os']['lsb']['distcodename']`.\r\nRunning `facter`, we only get the following for `os`\r\n\r\n```\r\nos => {\r\n  architecture => \"amd64\",\r\n  distro => {\r\n    codename => \"trusty\",\r\n    description => \"Ubuntu 14.04.5 LTS\",\r\n    id => \"Ubuntu\",\r\n    release => {\r\n      full => \"14.04\",\r\n      major => \"14.04\"\r\n    }\r\n  },\r\n  family => \"Debian\",\r\n  hardware => \"x86_64\",\r\n  name => \"Ubuntu\",\r\n  release => {\r\n    full => \"14.04\",\r\n    major => \"14.04\"\r\n  },\r\n  selinux => {\r\n    enabled => false\r\n  }\r\n}\r\n```\r\n\r\n## What are you seeing\r\n\r\nPuppet run encounters an error.\r\n\r\n## What behaviour did you expect instead\r\n\r\nNewRelic should be installed.\r\n\r\n## Output log\r\n\r\n`Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Operator '[]' is not applicable to an Undef Value. at /etc/puppetlabs/code/environments/development/modules/newrelic/manifests/repo/infra.pp:32:22`\r\n\r\n## Any additional information you'd like to impart\r\n"}}
{"actor":{"display_login":"craigwatson"}}