{"action":"created","issue":{"url":"https://api.github.com/repos/puppetlabs/pxp-agent/issues/427","repository_url":"https://api.github.com/repos/puppetlabs/pxp-agent","labels_url":"https://api.github.com/repos/puppetlabs/pxp-agent/issues/427/labels{/name}","comments_url":"https://api.github.com/repos/puppetlabs/pxp-agent/issues/427/comments","events_url":"https://api.github.com/repos/puppetlabs/pxp-agent/issues/427/events","html_url":"https://github.com/puppetlabs/pxp-agent/pull/427","id":155020841,"number":427,"title":"(PCP-349) support running puppet as non-root","user":{"login":"mruzicka","id":562920,"avatar_url":"https://avatars.githubusercontent.com/u/562920?v=3","gravatar_id":"","url":"https://api.github.com/users/mruzicka","html_url":"https://github.com/mruzicka","followers_url":"https://api.github.com/users/mruzicka/followers","following_url":"https://api.github.com/users/mruzicka/following{/other_user}","gists_url":"https://api.github.com/users/mruzicka/gists{/gist_id}","starred_url":"https://api.github.com/users/mruzicka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mruzicka/subscriptions","organizations_url":"https://api.github.com/users/mruzicka/orgs","repos_url":"https://api.github.com/users/mruzicka/repos","events_url":"https://api.github.com/users/mruzicka/events{/privacy}","received_events_url":"https://api.github.com/users/mruzicka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-16T12:36:52Z","updated_at":"2016-05-16T15:30:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/puppetlabs/pxp-agent/pulls/427","html_url":"https://github.com/puppetlabs/pxp-agent/pull/427","diff_url":"https://github.com/puppetlabs/pxp-agent/pull/427.diff","patch_url":"https://github.com/puppetlabs/pxp-agent/pull/427.patch"},"body":"This commit makes it possible to run puppet under a non root user.\r\nPreviously this was not possible because puppet failed to expand the user home directory. This was due to the environment cleaning performed by the `Puppet::Util::Execution.execute` function used for the puppet run execution which included unsetting of the `HOME` environment variable.\r\nThis patch solves that by fixing the environment (re-adding the necessary environment variables to it) after the cleaning. The values of the re-added variables are obtained by reading the pwentry corresponding to the current effective user id."},"comment":{"url":"https://api.github.com/repos/puppetlabs/pxp-agent/issues/comments/219456370","html_url":"https://github.com/puppetlabs/pxp-agent/pull/427#issuecomment-219456370","issue_url":"https://api.github.com/repos/puppetlabs/pxp-agent/issues/427","id":219456370,"user":{"login":"parisiale","id":7150922,"avatar_url":"https://avatars.githubusercontent.com/u/7150922?v=3","gravatar_id":"","url":"https://api.github.com/users/parisiale","html_url":"https://github.com/parisiale","followers_url":"https://api.github.com/users/parisiale/followers","following_url":"https://api.github.com/users/parisiale/following{/other_user}","gists_url":"https://api.github.com/users/parisiale/gists{/gist_id}","starred_url":"https://api.github.com/users/parisiale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parisiale/subscriptions","organizations_url":"https://api.github.com/users/parisiale/orgs","repos_url":"https://api.github.com/users/parisiale/repos","events_url":"https://api.github.com/users/parisiale/events{/privacy}","received_events_url":"https://api.github.com/users/parisiale/received_events","type":"User","site_admin":false},"created_at":"2016-05-16T15:30:20Z","updated_at":"2016-05-16T15:30:20Z","body":"Travis is not happy with the `modules` test:\r\n```\r\n/home/travis/build/puppetlabs/pxp-agent/modules/pxp-module-puppet:33:in `<top (required)>': undefined method `define_method' for main:Object (NoMethodError)\r\n```"}}