{"action":"opened","number":77,"pull_request":{"url":"https://api.github.com/repos/xaque208/puppet-bacula/pulls/77","id":85531763,"html_url":"https://github.com/xaque208/puppet-bacula/pull/77","diff_url":"https://github.com/xaque208/puppet-bacula/pull/77.diff","patch_url":"https://github.com/xaque208/puppet-bacula/pull/77.patch","issue_url":"https://api.github.com/repos/xaque208/puppet-bacula/issues/77","number":77,"state":"open","locked":false,"title":"Set db_name environment variable when executing the make_bacula_table…","user":{"login":"rvdh","id":1104634,"avatar_url":"https://avatars.githubusercontent.com/u/1104634?v=3","gravatar_id":"","url":"https://api.github.com/users/rvdh","html_url":"https://github.com/rvdh","followers_url":"https://api.github.com/users/rvdh/followers","following_url":"https://api.github.com/users/rvdh/following{/other_user}","gists_url":"https://api.github.com/users/rvdh/gists{/gist_id}","starred_url":"https://api.github.com/users/rvdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvdh/subscriptions","organizations_url":"https://api.github.com/users/rvdh/orgs","repos_url":"https://api.github.com/users/rvdh/repos","events_url":"https://api.github.com/users/rvdh/events{/privacy}","received_events_url":"https://api.github.com/users/rvdh/received_events","type":"User","site_admin":false},"body":"…s script.\r\n\r\nThis is necessary, because if it isn't set the following error is generated:\r\n```\r\nInfo: Postgresql::Server::Db[bacula]: Scheduling refresh of Exec[/bin/sh /usr/share/bacula-director/make_postgresql_tables]\r\nNotice: /Stage[main]/Bacula::Director::Postgresql/Exec[/bin/sh /usr/share/bacula-director/make_postgresql_tables]/returns: psql: FATAL:  database \"XXX_DBNAME_XXX\" does not exist\r\nNotice: /Stage[main]/Bacula::Director::Postgresql/Exec[/bin/sh /usr/share/bacula-director/make_postgresql_tables]/returns: Creation of Bacula PostgreSQL tables failed.\r\nError: /Stage[main]/Bacula::Director::Postgresql/Exec[/bin/sh /usr/share/bacula-director/make_postgresql_tables]: Failed to call refresh: /bin/sh /usr/share/bacula-director/make_postgresql_tables returned 2 instead of one of [0]\r\nError: /Stage[main]/Bacula::Director::Postgresql/Exec[/bin/sh /usr/share/bacula-director/make_postgresql_tables]: /bin/sh /usr/share/bacula-director/make_postgresql_tables returned 2 instead of one of [0]\r\n```\r\nIt tries to use the `XXX_DBNAME_XXX` database because of this line in make_postgresql_tables:\r\n```\r\ndb_name=${db_name:-XXX_DBNAME_XXX}\r\n```","created_at":"2016-09-16T07:53:16Z","updated_at":"2016-09-16T07:53:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/xaque208/puppet-bacula/pulls/77/commits","review_comments_url":"https://api.github.com/repos/xaque208/puppet-bacula/pulls/77/comments","review_comment_url":"https://api.github.com/repos/xaque208/puppet-bacula/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xaque208/puppet-bacula/issues/77/comments","statuses_url":"https://api.github.com/repos/xaque208/puppet-bacula/statuses/58ab8b16beba661ece31ef3e4cd97b5831d4019b","head":{"label":"rvdh:master","ref":"master","sha":"58ab8b16beba661ece31ef3e4cd97b5831d4019b","user":{"login":"rvdh","id":1104634,"avatar_url":"https://avatars.githubusercontent.com/u/1104634?v=3","gravatar_id":"","url":"https://api.github.com/users/rvdh","html_url":"https://github.com/rvdh","followers_url":"https://api.github.com/users/rvdh/followers","following_url":"https://api.github.com/users/rvdh/following{/other_user}","gists_url":"https://api.github.com/users/rvdh/gists{/gist_id}","starred_url":"https://api.github.com/users/rvdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvdh/subscriptions","organizations_url":"https://api.github.com/users/rvdh/orgs","repos_url":"https://api.github.com/users/rvdh/repos","events_url":"https://api.github.com/users/rvdh/events{/privacy}","received_events_url":"https://api.github.com/users/rvdh/received_events","type":"User","site_admin":false},"repo":{"id":64462584,"name":"puppet-bacula","full_name":"rvdh/puppet-bacula","owner":{"login":"rvdh","id":1104634,"avatar_url":"https://avatars.githubusercontent.com/u/1104634?v=3","gravatar_id":"","url":"https://api.github.com/users/rvdh","html_url":"https://github.com/rvdh","followers_url":"https://api.github.com/users/rvdh/followers","following_url":"https://api.github.com/users/rvdh/following{/other_user}","gists_url":"https://api.github.com/users/rvdh/gists{/gist_id}","starred_url":"https://api.github.com/users/rvdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvdh/subscriptions","organizations_url":"https://api.github.com/users/rvdh/orgs","repos_url":"https://api.github.com/users/rvdh/repos","events_url":"https://api.github.com/users/rvdh/events{/privacy}","received_events_url":"https://api.github.com/users/rvdh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rvdh/puppet-bacula","description":"A bacula module recovered from the Puppet Labs Operations team","fork":true,"url":"https://api.github.com/repos/rvdh/puppet-bacula","forks_url":"https://api.github.com/repos/rvdh/puppet-bacula/forks","keys_url":"https://api.github.com/repos/rvdh/puppet-bacula/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rvdh/puppet-bacula/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rvdh/puppet-bacula/teams","hooks_url":"https://api.github.com/repos/rvdh/puppet-bacula/hooks","issue_events_url":"https://api.github.com/repos/rvdh/puppet-bacula/issues/events{/number}","events_url":"https://api.github.com/repos/rvdh/puppet-bacula/events","assignees_url":"https://api.github.com/repos/rvdh/puppet-bacula/assignees{/user}","branches_url":"https://api.github.com/repos/rvdh/puppet-bacula/branches{/branch}","tags_url":"https://api.github.com/repos/rvdh/puppet-bacula/tags","blobs_url":"https://api.github.com/repos/rvdh/puppet-bacula/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rvdh/puppet-bacula/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rvdh/puppet-bacula/git/refs{/sha}","trees_url":"https://api.github.com/repos/rvdh/puppet-bacula/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rvdh/puppet-bacula/statuses/{sha}","languages_url":"https://api.github.com/repos/rvdh/puppet-bacula/languages","stargazers_url":"https://api.github.com/repos/rvdh/puppet-bacula/stargazers","contributors_url":"https://api.github.com/repos/rvdh/puppet-bacula/contributors","subscribers_url":"https://api.github.com/repos/rvdh/puppet-bacula/subscribers","subscription_url":"https://api.github.com/repos/rvdh/puppet-bacula/subscription","commits_url":"https://api.github.com/repos/rvdh/puppet-bacula/commits{/sha}","git_commits_url":"https://api.github.com/repos/rvdh/puppet-bacula/git/commits{/sha}","comments_url":"https://api.github.com/repos/rvdh/puppet-bacula/comments{/number}","issue_comment_url":"https://api.github.com/repos/rvdh/puppet-bacula/issues/comments{/number}","contents_url":"https://api.github.com/repos/rvdh/puppet-bacula/contents/{+path}","compare_url":"https://api.github.com/repos/rvdh/puppet-bacula/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rvdh/puppet-bacula/merges","archive_url":"https://api.github.com/repos/rvdh/puppet-bacula/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rvdh/puppet-bacula/downloads","issues_url":"https://api.github.com/repos/rvdh/puppet-bacula/issues{/number}","pulls_url":"https://api.github.com/repos/rvdh/puppet-bacula/pulls{/number}","milestones_url":"https://api.github.com/repos/rvdh/puppet-bacula/milestones{/number}","notifications_url":"https://api.github.com/repos/rvdh/puppet-bacula/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rvdh/puppet-bacula/labels{/name}","releases_url":"https://api.github.com/repos/rvdh/puppet-bacula/releases{/id}","deployments_url":"https://api.github.com/repos/rvdh/puppet-bacula/deployments","created_at":"2016-07-29T08:03:11Z","updated_at":"2016-07-29T08:03:14Z","pushed_at":"2016-09-16T07:49:23Z","git_url":"git://github.com/rvdh/puppet-bacula.git","ssh_url":"git@github.com:rvdh/puppet-bacula.git","clone_url":"https://github.com/rvdh/puppet-bacula.git","svn_url":"https://github.com/rvdh/puppet-bacula","homepage":"","size":3721,"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":"xaque208:master","ref":"master","sha":"c6a503f1892c6733d286415e2e80ac8473f8cfff","user":{"login":"xaque208","id":334176,"avatar_url":"https://avatars.githubusercontent.com/u/334176?v=3","gravatar_id":"","url":"https://api.github.com/users/xaque208","html_url":"https://github.com/xaque208","followers_url":"https://api.github.com/users/xaque208/followers","following_url":"https://api.github.com/users/xaque208/following{/other_user}","gists_url":"https://api.github.com/users/xaque208/gists{/gist_id}","starred_url":"https://api.github.com/users/xaque208/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xaque208/subscriptions","organizations_url":"https://api.github.com/users/xaque208/orgs","repos_url":"https://api.github.com/users/xaque208/repos","events_url":"https://api.github.com/users/xaque208/events{/privacy}","received_events_url":"https://api.github.com/users/xaque208/received_events","type":"User","site_admin":false},"repo":{"id":23807067,"name":"puppet-bacula","full_name":"xaque208/puppet-bacula","owner":{"login":"xaque208","id":334176,"avatar_url":"https://avatars.githubusercontent.com/u/334176?v=3","gravatar_id":"","url":"https://api.github.com/users/xaque208","html_url":"https://github.com/xaque208","followers_url":"https://api.github.com/users/xaque208/followers","following_url":"https://api.github.com/users/xaque208/following{/other_user}","gists_url":"https://api.github.com/users/xaque208/gists{/gist_id}","starred_url":"https://api.github.com/users/xaque208/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xaque208/subscriptions","organizations_url":"https://api.github.com/users/xaque208/orgs","repos_url":"https://api.github.com/users/xaque208/repos","events_url":"https://api.github.com/users/xaque208/events{/privacy}","received_events_url":"https://api.github.com/users/xaque208/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xaque208/puppet-bacula","description":"A bacula module recovered from the Puppet Labs Operations team","fork":false,"url":"https://api.github.com/repos/xaque208/puppet-bacula","forks_url":"https://api.github.com/repos/xaque208/puppet-bacula/forks","keys_url":"https://api.github.com/repos/xaque208/puppet-bacula/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xaque208/puppet-bacula/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xaque208/puppet-bacula/teams","hooks_url":"https://api.github.com/repos/xaque208/puppet-bacula/hooks","issue_events_url":"https://api.github.com/repos/xaque208/puppet-bacula/issues/events{/number}","events_url":"https://api.github.com/repos/xaque208/puppet-bacula/events","assignees_url":"https://api.github.com/repos/xaque208/puppet-bacula/assignees{/user}","branches_url":"https://api.github.com/repos/xaque208/puppet-bacula/branches{/branch}","tags_url":"https://api.github.com/repos/xaque208/puppet-bacula/tags","blobs_url":"https://api.github.com/repos/xaque208/puppet-bacula/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xaque208/puppet-bacula/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xaque208/puppet-bacula/git/refs{/sha}","trees_url":"https://api.github.com/repos/xaque208/puppet-bacula/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xaque208/puppet-bacula/statuses/{sha}","languages_url":"https://api.github.com/repos/xaque208/puppet-bacula/languages","stargazers_url":"https://api.github.com/repos/xaque208/puppet-bacula/stargazers","contributors_url":"https://api.github.com/repos/xaque208/puppet-bacula/contributors","subscribers_url":"https://api.github.com/repos/xaque208/puppet-bacula/subscribers","subscription_url":"https://api.github.com/repos/xaque208/puppet-bacula/subscription","commits_url":"https://api.github.com/repos/xaque208/puppet-bacula/commits{/sha}","git_commits_url":"https://api.github.com/repos/xaque208/puppet-bacula/git/commits{/sha}","comments_url":"https://api.github.com/repos/xaque208/puppet-bacula/comments{/number}","issue_comment_url":"https://api.github.com/repos/xaque208/puppet-bacula/issues/comments{/number}","contents_url":"https://api.github.com/repos/xaque208/puppet-bacula/contents/{+path}","compare_url":"https://api.github.com/repos/xaque208/puppet-bacula/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xaque208/puppet-bacula/merges","archive_url":"https://api.github.com/repos/xaque208/puppet-bacula/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xaque208/puppet-bacula/downloads","issues_url":"https://api.github.com/repos/xaque208/puppet-bacula/issues{/number}","pulls_url":"https://api.github.com/repos/xaque208/puppet-bacula/pulls{/number}","milestones_url":"https://api.github.com/repos/xaque208/puppet-bacula/milestones{/number}","notifications_url":"https://api.github.com/repos/xaque208/puppet-bacula/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xaque208/puppet-bacula/labels{/name}","releases_url":"https://api.github.com/repos/xaque208/puppet-bacula/releases{/id}","deployments_url":"https://api.github.com/repos/xaque208/puppet-bacula/deployments","created_at":"2014-09-08T20:29:25Z","updated_at":"2016-08-16T09:39:18Z","pushed_at":"2016-09-16T07:53:16Z","git_url":"git://github.com/xaque208/puppet-bacula.git","ssh_url":"git@github.com:xaque208/puppet-bacula.git","clone_url":"https://github.com/xaque208/puppet-bacula.git","svn_url":"https://github.com/xaque208/puppet-bacula","homepage":"","size":3753,"stargazers_count":5,"watchers_count":5,"language":"Puppet","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":10,"forks":13,"open_issues":10,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xaque208/puppet-bacula/pulls/77"},"html":{"href":"https://github.com/xaque208/puppet-bacula/pull/77"},"issue":{"href":"https://api.github.com/repos/xaque208/puppet-bacula/issues/77"},"comments":{"href":"https://api.github.com/repos/xaque208/puppet-bacula/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/xaque208/puppet-bacula/pulls/77/comments"},"review_comment":{"href":"https://api.github.com/repos/xaque208/puppet-bacula/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xaque208/puppet-bacula/pulls/77/commits"},"statuses":{"href":"https://api.github.com/repos/xaque208/puppet-bacula/statuses/58ab8b16beba661ece31ef3e4cd97b5831d4019b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"rvdh"}}