{"action":"created","issue":{"url":"https://api.github.com/repos/rpm-software-management/mock/issues/10","repository_url":"https://api.github.com/repos/rpm-software-management/mock","labels_url":"https://api.github.com/repos/rpm-software-management/mock/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/rpm-software-management/mock/issues/10/comments","events_url":"https://api.github.com/repos/rpm-software-management/mock/issues/10/events","html_url":"https://github.com/rpm-software-management/mock/pull/10","id":182326529,"number":10,"title":"add config option `hostname` to set hostname","user":{"login":"pkit","id":805654,"avatar_url":"https://avatars.githubusercontent.com/u/805654?v=3","gravatar_id":"","url":"https://api.github.com/users/pkit","html_url":"https://github.com/pkit","followers_url":"https://api.github.com/users/pkit/followers","following_url":"https://api.github.com/users/pkit/following{/other_user}","gists_url":"https://api.github.com/users/pkit/gists{/gist_id}","starred_url":"https://api.github.com/users/pkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkit/subscriptions","organizations_url":"https://api.github.com/users/pkit/orgs","repos_url":"https://api.github.com/users/pkit/repos","events_url":"https://api.github.com/users/pkit/events{/privacy}","received_events_url":"https://api.github.com/users/pkit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-11T17:35:16Z","updated_at":"2016-10-12T22:07:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rpm-software-management/mock/pulls/10","html_url":"https://github.com/rpm-software-management/mock/pull/10","diff_url":"https://github.com/rpm-software-management/mock/pull/10.diff","patch_url":"https://github.com/rpm-software-management/mock/pull/10.patch"},"body":"adds ability to set a hostname for a build\r\nhostname is a part of the resulting rpm in most of the cases\r\nmakes builds more reproducible"},"comment":{"url":"https://api.github.com/repos/rpm-software-management/mock/issues/comments/253353968","html_url":"https://github.com/rpm-software-management/mock/pull/10#issuecomment-253353968","issue_url":"https://api.github.com/repos/rpm-software-management/mock/issues/10","id":253353968,"user":{"login":"scop","id":109152,"avatar_url":"https://avatars.githubusercontent.com/u/109152?v=3","gravatar_id":"","url":"https://api.github.com/users/scop","html_url":"https://github.com/scop","followers_url":"https://api.github.com/users/scop/followers","following_url":"https://api.github.com/users/scop/following{/other_user}","gists_url":"https://api.github.com/users/scop/gists{/gist_id}","starred_url":"https://api.github.com/users/scop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scop/subscriptions","organizations_url":"https://api.github.com/users/scop/orgs","repos_url":"https://api.github.com/users/scop/repos","events_url":"https://api.github.com/users/scop/events{/privacy}","received_events_url":"https://api.github.com/users/scop/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T22:07:03Z","updated_at":"2016-10-12T22:07:03Z","body":"IIRC I managed to set the hostname the way I wanted a long time ago by tweaking /etc/hosts in the buildroot. The exact details escape me though. Something like this in site-defaults.cfg? Doesn't seem to work as is, but it's a start...?\r\n\r\n```python\r\nconfig_opts['use_host_resolv'] = False\r\nconfig_opts['files']['etc/hosts'] = \"\"\"\r\n127.0.0.1 buildhost.localdomain\r\n\"\"\"\r\n```"}}
{"actor":{"display_login":"scop"}}