{"action":"closed","number":20,"pull_request":{"url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/pulls/20","id":196240053,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2MjQwMDUz","html_url":"https://github.com/puppetlabs/ref_arch_setup/pull/20","diff_url":"https://github.com/puppetlabs/ref_arch_setup/pull/20.diff","patch_url":"https://github.com/puppetlabs/ref_arch_setup/pull/20.patch","issue_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/issues/20","number":20,"state":"closed","locked":false,"title":"(SLV-125) Add download_pe_tarball task","user":{"login":"billclaytor","id":35778171,"node_id":"MDQ6VXNlcjM1Nzc4MTcx","avatar_url":"https://avatars3.githubusercontent.com/u/35778171?v=4","gravatar_id":"","url":"https://api.github.com/users/billclaytor","html_url":"https://github.com/billclaytor","followers_url":"https://api.github.com/users/billclaytor/followers","following_url":"https://api.github.com/users/billclaytor/following{/other_user}","gists_url":"https://api.github.com/users/billclaytor/gists{/gist_id}","starred_url":"https://api.github.com/users/billclaytor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billclaytor/subscriptions","organizations_url":"https://api.github.com/users/billclaytor/orgs","repos_url":"https://api.github.com/users/billclaytor/repos","events_url":"https://api.github.com/users/billclaytor/events{/privacy}","received_events_url":"https://api.github.com/users/billclaytor/received_events","type":"User","site_admin":false},"body":"This PR adds the download_pe_tarball task. This task has been implemented as a bash script since the target node may not have Ruby installed.\r\n\r\nThe task files are contained in the directory modules/ref_arch_setup/tasks so that the task can be referenced as ref_arch_spec::download_pe_tarball using the module path ./modules from within the top level ref_arch_setup directory. A corresponding JSON metadata file has been added providing a description, input method, and required / optional parameters.\r\n\r\nThe bolt task can be run from the command line like so:\r\n* Remote node as root user:\r\n\r\n```\r\nbolt task run ref_arch_setup::download_pe_tarball url=https://pm.puppetlabs.com/puppet-enterprise/2017.3.4/puppet-enterprise-2017.3.4-el-7-x86_64.tar.gz destination=/tmp/ras --modulepath ./modules --nodes tjsss144r6ouvhc --user root\r\n```\r\n\r\n* Local machine as current user:\r\n\r\n```\r\nbolt task run ref_arch_setup::download_pe_tarball url=https://pm.puppetlabs.com/puppet-enterprise/2017.3.4/puppet-enterprise-2017.3.4-el-7-x86_64.tar.gz destination=/tmp/ras --modulepath ./modules --nodes localhost\r\n```\r\n\r\nThe script performs a simple regex comparison verifying that the URL starts with `http` or `https` and end with `.gz`. If the URL is valid the script then verifies that the destination directory exists. If so, the script uses curl to download the file. If the download succeeds the task exits successfully, otherwise the error is reported and the task fails.","created_at":"2018-06-20T18:54:51Z","updated_at":"2018-06-21T19:09:18Z","closed_at":"2018-06-21T19:09:18Z","merged_at":"2018-06-21T19:09:18Z","merge_commit_sha":"7dc81496283d08b172ba9913f11a6a28dcb7b5c9","assignee":null,"assignees":[],"requested_reviewers":[{"login":"RandellP","id":13925988,"node_id":"MDQ6VXNlcjEzOTI1OTg4","avatar_url":"https://avatars1.githubusercontent.com/u/13925988?v=4","gravatar_id":"","url":"https://api.github.com/users/RandellP","html_url":"https://github.com/RandellP","followers_url":"https://api.github.com/users/RandellP/followers","following_url":"https://api.github.com/users/RandellP/following{/other_user}","gists_url":"https://api.github.com/users/RandellP/gists{/gist_id}","starred_url":"https://api.github.com/users/RandellP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RandellP/subscriptions","organizations_url":"https://api.github.com/users/RandellP/orgs","repos_url":"https://api.github.com/users/RandellP/repos","events_url":"https://api.github.com/users/RandellP/events{/privacy}","received_events_url":"https://api.github.com/users/RandellP/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/pulls/20/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/pulls/20/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/issues/20/comments","statuses_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/statuses/4af81618e79adddbd3f876d8f0dce4ad075921ac","head":{"label":"puppetlabs:SLV-125","ref":"SLV-125","sha":"4af81618e79adddbd3f876d8f0dce4ad075921ac","user":{"login":"puppetlabs","id":234268,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNDI2OA==","avatar_url":"https://avatars0.githubusercontent.com/u/234268?v=4","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":127178400,"node_id":"MDEwOlJlcG9zaXRvcnkxMjcxNzg0MDA=","name":"ref_arch_setup","full_name":"puppetlabs/ref_arch_setup","owner":{"login":"puppetlabs","id":234268,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNDI2OA==","avatar_url":"https://avatars0.githubusercontent.com/u/234268?v=4","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/ref_arch_setup","description":"Tools for setting up reference architectures","fork":false,"url":"https://api.github.com/repos/puppetlabs/ref_arch_setup","forks_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/forks","keys_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/teams","hooks_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/events","assignees_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/tags","blobs_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/subscription","commits_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/merges","archive_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/downloads","issues_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/releases{/id}","deployments_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/deployments","created_at":"2018-03-28T17:57:56Z","updated_at":"2018-06-15T20:54:49Z","pushed_at":"2018-06-21T19:09:18Z","git_url":"git://github.com/puppetlabs/ref_arch_setup.git","ssh_url":"git@github.com:puppetlabs/ref_arch_setup.git","clone_url":"https://github.com/puppetlabs/ref_arch_setup.git","svn_url":"https://github.com/puppetlabs/ref_arch_setup","homepage":null,"size":62,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"puppetlabs:master","ref":"master","sha":"d6fe0d4869f1ca4fd213a8185be76c3d7fcede9c","user":{"login":"puppetlabs","id":234268,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNDI2OA==","avatar_url":"https://avatars0.githubusercontent.com/u/234268?v=4","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":127178400,"node_id":"MDEwOlJlcG9zaXRvcnkxMjcxNzg0MDA=","name":"ref_arch_setup","full_name":"puppetlabs/ref_arch_setup","owner":{"login":"puppetlabs","id":234268,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNDI2OA==","avatar_url":"https://avatars0.githubusercontent.com/u/234268?v=4","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/ref_arch_setup","description":"Tools for setting up reference architectures","fork":false,"url":"https://api.github.com/repos/puppetlabs/ref_arch_setup","forks_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/forks","keys_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/teams","hooks_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/events","assignees_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/tags","blobs_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/subscription","commits_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/merges","archive_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/downloads","issues_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/releases{/id}","deployments_url":"https://api.github.com/repos/puppetlabs/ref_arch_setup/deployments","created_at":"2018-03-28T17:57:56Z","updated_at":"2018-06-15T20:54:49Z","pushed_at":"2018-06-21T19:09:18Z","git_url":"git://github.com/puppetlabs/ref_arch_setup.git","ssh_url":"git@github.com:puppetlabs/ref_arch_setup.git","clone_url":"https://github.com/puppetlabs/ref_arch_setup.git","svn_url":"https://github.com/puppetlabs/ref_arch_setup","homepage":null,"size":62,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/ref_arch_setup/pulls/20"},"html":{"href":"https://github.com/puppetlabs/ref_arch_setup/pull/20"},"issue":{"href":"https://api.github.com/repos/puppetlabs/ref_arch_setup/issues/20"},"comments":{"href":"https://api.github.com/repos/puppetlabs/ref_arch_setup/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/ref_arch_setup/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/ref_arch_setup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/ref_arch_setup/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/ref_arch_setup/statuses/4af81618e79adddbd3f876d8f0dce4ad075921ac"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"samwoods1","id":4604901,"node_id":"MDQ6VXNlcjQ2MDQ5MDE=","avatar_url":"https://avatars3.githubusercontent.com/u/4604901?v=4","gravatar_id":"","url":"https://api.github.com/users/samwoods1","html_url":"https://github.com/samwoods1","followers_url":"https://api.github.com/users/samwoods1/followers","following_url":"https://api.github.com/users/samwoods1/following{/other_user}","gists_url":"https://api.github.com/users/samwoods1/gists{/gist_id}","starred_url":"https://api.github.com/users/samwoods1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samwoods1/subscriptions","organizations_url":"https://api.github.com/users/samwoods1/orgs","repos_url":"https://api.github.com/users/samwoods1/repos","events_url":"https://api.github.com/users/samwoods1/events{/privacy}","received_events_url":"https://api.github.com/users/samwoods1/received_events","type":"User","site_admin":false},"comments":0,"review_comments":1,"maintainer_can_modify":false,"commits":7,"additions":61,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"samwoods1"}}