{"action":"created","comment":{"url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/pulls/comments/66080158","id":66080158,"diff_hunk":"@@ -0,0 +1,25 @@\n+# Cookbook Name:: mh-opsworks-recipes\n+# Recipe:: configure-capture-agent-manager-gunicorn\n+\n+::Chef::Recipe.send(:include, MhOpsworksRecipes::RecipeHelpers)\n+\n+app_name = get_capture_agent_manager_app_name\n+usr_name = get_capture_agent_manager_usr_name\n+\n+execute \"install gunicorn\" do\n+  command \"source /home/#{usr_name}/sites/#{app_name}/venv/bin/activate\" \\","path":"recipes/configure-capture-agent-manager-gunicorn.rb","position":10,"original_position":10,"commit_id":"352625b88c9ebc314e25ab0f5cde2f9d2cebd68c","original_commit_id":"352625b88c9ebc314e25ab0f5cde2f9d2cebd68c","user":{"login":"nmaekawa","id":1728688,"avatar_url":"https://avatars.githubusercontent.com/u/1728688?v=3","gravatar_id":"","url":"https://api.github.com/users/nmaekawa","html_url":"https://github.com/nmaekawa","followers_url":"https://api.github.com/users/nmaekawa/followers","following_url":"https://api.github.com/users/nmaekawa/following{/other_user}","gists_url":"https://api.github.com/users/nmaekawa/gists{/gist_id}","starred_url":"https://api.github.com/users/nmaekawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmaekawa/subscriptions","organizations_url":"https://api.github.com/users/nmaekawa/orgs","repos_url":"https://api.github.com/users/nmaekawa/repos","events_url":"https://api.github.com/users/nmaekawa/events{/privacy}","received_events_url":"https://api.github.com/users/nmaekawa/received_events","type":"User","site_admin":false},"body":"yes, it does. how much re-usable a recipe should be? i could write this assuming that the app requirements already run and just install the gunicorn-start script?","created_at":"2016-06-07T14:23:49Z","updated_at":"2016-06-07T14:23:49Z","html_url":"https://github.com/harvard-dce/mh-opsworks-recipes/pull/83#discussion_r66080158","pull_request_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/pulls/83","_links":{"self":{"href":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/pulls/comments/66080158"},"html":{"href":"https://github.com/harvard-dce/mh-opsworks-recipes/pull/83#discussion_r66080158"},"pull_request":{"href":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/pulls/83","id":71249624,"html_url":"https://github.com/harvard-dce/mh-opsworks-recipes/pull/83","diff_url":"https://github.com/harvard-dce/mh-opsworks-recipes/pull/83.diff","patch_url":"https://github.com/harvard-dce/mh-opsworks-recipes/pull/83.patch","issue_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/issues/83","number":83,"state":"open","locked":false,"title":"matt-1875: provision recipes for flask-gunicorn apps","user":{"login":"nmaekawa","id":1728688,"avatar_url":"https://avatars.githubusercontent.com/u/1728688?v=3","gravatar_id":"","url":"https://api.github.com/users/nmaekawa","html_url":"https://github.com/nmaekawa","followers_url":"https://api.github.com/users/nmaekawa/followers","following_url":"https://api.github.com/users/nmaekawa/following{/other_user}","gists_url":"https://api.github.com/users/nmaekawa/gists{/gist_id}","starred_url":"https://api.github.com/users/nmaekawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmaekawa/subscriptions","organizations_url":"https://api.github.com/users/nmaekawa/orgs","repos_url":"https://api.github.com/users/nmaekawa/repos","events_url":"https://api.github.com/users/nmaekawa/events{/privacy}","received_events_url":"https://api.github.com/users/nmaekawa/received_events","type":"User","site_admin":false},"body":"- create non-priviledged user\r\n- install python pkgs and supervisor\r\n- virtualenv and pip requirements\r\n- gunicorn start script virtualenv\r\n- prevent re-create virtualenv\r\n- redis\r\n- logrotate for app related logs\r\n- using refactor for certificates\r\n- (fix pull #81) more descriptive names\r\n- (fix pull #81) string of packages to `install-packages` recipe\r\n- (fix pull #81) redis default save to disk is enough for now\r\n- (fix pull #81) nginx configs\r\n- (fix pull #81) logrotate keeps 7 logs instead of 45","created_at":"2016-05-24T16:14:49Z","updated_at":"2016-06-07T14:23:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa15e6dd13e59ce22ebc1b480dfb5bf35ba3d7b1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/pulls/83/commits","review_comments_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/pulls/83/comments","review_comment_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/issues/83/comments","statuses_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/statuses/352625b88c9ebc314e25ab0f5cde2f9d2cebd68c","head":{"label":"harvard-dce:matt-1875-redunlive","ref":"matt-1875-redunlive","sha":"352625b88c9ebc314e25ab0f5cde2f9d2cebd68c","user":{"login":"harvard-dce","id":9451054,"avatar_url":"https://avatars.githubusercontent.com/u/9451054?v=3","gravatar_id":"","url":"https://api.github.com/users/harvard-dce","html_url":"https://github.com/harvard-dce","followers_url":"https://api.github.com/users/harvard-dce/followers","following_url":"https://api.github.com/users/harvard-dce/following{/other_user}","gists_url":"https://api.github.com/users/harvard-dce/gists{/gist_id}","starred_url":"https://api.github.com/users/harvard-dce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harvard-dce/subscriptions","organizations_url":"https://api.github.com/users/harvard-dce/orgs","repos_url":"https://api.github.com/users/harvard-dce/repos","events_url":"https://api.github.com/users/harvard-dce/events{/privacy}","received_events_url":"https://api.github.com/users/harvard-dce/received_events","type":"Organization","site_admin":false},"repo":{"id":31921136,"name":"mh-opsworks-recipes","full_name":"harvard-dce/mh-opsworks-recipes","owner":{"login":"harvard-dce","id":9451054,"avatar_url":"https://avatars.githubusercontent.com/u/9451054?v=3","gravatar_id":"","url":"https://api.github.com/users/harvard-dce","html_url":"https://github.com/harvard-dce","followers_url":"https://api.github.com/users/harvard-dce/followers","following_url":"https://api.github.com/users/harvard-dce/following{/other_user}","gists_url":"https://api.github.com/users/harvard-dce/gists{/gist_id}","starred_url":"https://api.github.com/users/harvard-dce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harvard-dce/subscriptions","organizations_url":"https://api.github.com/users/harvard-dce/orgs","repos_url":"https://api.github.com/users/harvard-dce/repos","events_url":"https://api.github.com/users/harvard-dce/events{/privacy}","received_events_url":"https://api.github.com/users/harvard-dce/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/harvard-dce/mh-opsworks-recipes","description":"mh-opsworks custom recipes","fork":false,"url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes","forks_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/forks","keys_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/teams","hooks_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/hooks","issue_events_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/issues/events{/number}","events_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/events","assignees_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/assignees{/user}","branches_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/branches{/branch}","tags_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/tags","blobs_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/languages","stargazers_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/stargazers","contributors_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/contributors","subscribers_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/subscribers","subscription_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/subscription","commits_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/contents/{+path}","compare_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/merges","archive_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/downloads","issues_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/issues{/number}","pulls_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/labels{/name}","releases_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/releases{/id}","deployments_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/deployments","created_at":"2015-03-09T20:34:23Z","updated_at":"2016-01-23T21:50:18Z","pushed_at":"2016-06-03T13:59:07Z","git_url":"git://github.com/harvard-dce/mh-opsworks-recipes.git","ssh_url":"git@github.com:harvard-dce/mh-opsworks-recipes.git","clone_url":"https://github.com/harvard-dce/mh-opsworks-recipes.git","svn_url":"https://github.com/harvard-dce/mh-opsworks-recipes","homepage":"","size":470,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":4,"default_branch":"master"}},"base":{"label":"harvard-dce:develop","ref":"develop","sha":"e33002cd4c01a8690b8ea001a12e3164a76dc4d2","user":{"login":"harvard-dce","id":9451054,"avatar_url":"https://avatars.githubusercontent.com/u/9451054?v=3","gravatar_id":"","url":"https://api.github.com/users/harvard-dce","html_url":"https://github.com/harvard-dce","followers_url":"https://api.github.com/users/harvard-dce/followers","following_url":"https://api.github.com/users/harvard-dce/following{/other_user}","gists_url":"https://api.github.com/users/harvard-dce/gists{/gist_id}","starred_url":"https://api.github.com/users/harvard-dce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harvard-dce/subscriptions","organizations_url":"https://api.github.com/users/harvard-dce/orgs","repos_url":"https://api.github.com/users/harvard-dce/repos","events_url":"https://api.github.com/users/harvard-dce/events{/privacy}","received_events_url":"https://api.github.com/users/harvard-dce/received_events","type":"Organization","site_admin":false},"repo":{"id":31921136,"name":"mh-opsworks-recipes","full_name":"harvard-dce/mh-opsworks-recipes","owner":{"login":"harvard-dce","id":9451054,"avatar_url":"https://avatars.githubusercontent.com/u/9451054?v=3","gravatar_id":"","url":"https://api.github.com/users/harvard-dce","html_url":"https://github.com/harvard-dce","followers_url":"https://api.github.com/users/harvard-dce/followers","following_url":"https://api.github.com/users/harvard-dce/following{/other_user}","gists_url":"https://api.github.com/users/harvard-dce/gists{/gist_id}","starred_url":"https://api.github.com/users/harvard-dce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harvard-dce/subscriptions","organizations_url":"https://api.github.com/users/harvard-dce/orgs","repos_url":"https://api.github.com/users/harvard-dce/repos","events_url":"https://api.github.com/users/harvard-dce/events{/privacy}","received_events_url":"https://api.github.com/users/harvard-dce/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/harvard-dce/mh-opsworks-recipes","description":"mh-opsworks custom recipes","fork":false,"url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes","forks_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/forks","keys_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/teams","hooks_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/hooks","issue_events_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/issues/events{/number}","events_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/events","assignees_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/assignees{/user}","branches_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/branches{/branch}","tags_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/tags","blobs_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/languages","stargazers_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/stargazers","contributors_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/contributors","subscribers_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/subscribers","subscription_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/subscription","commits_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/contents/{+path}","compare_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/merges","archive_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/downloads","issues_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/issues{/number}","pulls_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/labels{/name}","releases_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/releases{/id}","deployments_url":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/deployments","created_at":"2015-03-09T20:34:23Z","updated_at":"2016-01-23T21:50:18Z","pushed_at":"2016-06-03T13:59:07Z","git_url":"git://github.com/harvard-dce/mh-opsworks-recipes.git","ssh_url":"git@github.com:harvard-dce/mh-opsworks-recipes.git","clone_url":"https://github.com/harvard-dce/mh-opsworks-recipes.git","svn_url":"https://github.com/harvard-dce/mh-opsworks-recipes","homepage":"","size":470,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/pulls/83"},"html":{"href":"https://github.com/harvard-dce/mh-opsworks-recipes/pull/83"},"issue":{"href":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/issues/83"},"comments":{"href":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/harvard-dce/mh-opsworks-recipes/statuses/352625b88c9ebc314e25ab0f5cde2f9d2cebd68c"}}}}
{"actor":{"display_login":"nmaekawa"}}