{"action":"opened","number":170,"pull_request":{"url":"https://api.github.com/repos/roots/bedrock-ansible/pulls/170","id":32913853,"html_url":"https://github.com/roots/bedrock-ansible/pull/170","diff_url":"https://github.com/roots/bedrock-ansible/pull/170.diff","patch_url":"https://github.com/roots/bedrock-ansible/pull/170.patch","issue_url":"https://api.github.com/repos/roots/bedrock-ansible/issues/170","number":170,"state":"open","locked":false,"title":"Add logrotate for WordPress sites","user":{"login":"fullyint","id":7338513,"avatar_url":"https://avatars.githubusercontent.com/u/7338513?v=3","gravatar_id":"","url":"https://api.github.com/users/fullyint","html_url":"https://github.com/fullyint","followers_url":"https://api.github.com/users/fullyint/followers","following_url":"https://api.github.com/users/fullyint/following{/other_user}","gists_url":"https://api.github.com/users/fullyint/gists{/gist_id}","starred_url":"https://api.github.com/users/fullyint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fullyint/subscriptions","organizations_url":"https://api.github.com/users/fullyint/orgs","repos_url":"https://api.github.com/users/fullyint/repos","events_url":"https://api.github.com/users/fullyint/events{/privacy}","received_events_url":"https://api.github.com/users/fullyint/received_events","type":"User","site_admin":false},"body":"Closes #141 \r\n\r\nRotates logs weekly (or sooner if a log reaches 50MB). Keeps 8 rounds of backlogs (compressed) and deletes the rest. Users can customize these options in `group_vars/all`. Not all logs have to use these options. Just add another item to `logrotate_scripts`.\r\n\r\nI bumped the Ansible requirement to 1.8 in the README, as necessary for the `.yml` extension on the `requirements.yml` file. In testing, `ansible-galaxy install` does indeed fail before 1.8. \r\n\r\nNotes on the [nickhammond.logrotate](https://github.com/nickhammond/ansible-logrotate) role \r\n- has a [PR](https://github.com/nickhammond/ansible-logrotate/pull/6) to add `# {{ ansible_managed }}` to the log header.\r\n- puts the matching pattern [in quotes](https://github.com/nickhammond/ansible-logrotate/blob/9c3bb9ecb8207bf6f890764f5cbd139813bdc253/templates/logrotate.d.j2#L1). I would've preferred without. However, quotes [are acceptable](http://manpages.ubuntu.com/manpages/trusty/en/man8/logrotate.8.html), and still worked as I tested.\r\n- BSD license\r\n\r\nSome helpful logrotate articles: [slicehost](http://articles.slicehost.com/2010/6/30/understanding-logrotate-on-ubuntu-part-1), [serversforhackers](https://serversforhackers.com/managing-logs-with-logrotate)","created_at":"2015-04-08T23:54:32Z","updated_at":"2015-04-08T23:54:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/roots/bedrock-ansible/pulls/170/commits","review_comments_url":"https://api.github.com/repos/roots/bedrock-ansible/pulls/170/comments","review_comment_url":"https://api.github.com/repos/roots/bedrock-ansible/pulls/comments{/number}","comments_url":"https://api.github.com/repos/roots/bedrock-ansible/issues/170/comments","statuses_url":"https://api.github.com/repos/roots/bedrock-ansible/statuses/24bcb46c37c2249d9120c90adea743b3a01d8a92","head":{"label":"fullyint:logrotate","ref":"logrotate","sha":"24bcb46c37c2249d9120c90adea743b3a01d8a92","user":{"login":"fullyint","id":7338513,"avatar_url":"https://avatars.githubusercontent.com/u/7338513?v=3","gravatar_id":"","url":"https://api.github.com/users/fullyint","html_url":"https://github.com/fullyint","followers_url":"https://api.github.com/users/fullyint/followers","following_url":"https://api.github.com/users/fullyint/following{/other_user}","gists_url":"https://api.github.com/users/fullyint/gists{/gist_id}","starred_url":"https://api.github.com/users/fullyint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fullyint/subscriptions","organizations_url":"https://api.github.com/users/fullyint/orgs","repos_url":"https://api.github.com/users/fullyint/repos","events_url":"https://api.github.com/users/fullyint/events{/privacy}","received_events_url":"https://api.github.com/users/fullyint/received_events","type":"User","site_admin":false},"repo":{"id":20627252,"name":"bedrock-ansible","full_name":"fullyint/bedrock-ansible","owner":{"login":"fullyint","id":7338513,"avatar_url":"https://avatars.githubusercontent.com/u/7338513?v=3","gravatar_id":"","url":"https://api.github.com/users/fullyint","html_url":"https://github.com/fullyint","followers_url":"https://api.github.com/users/fullyint/followers","following_url":"https://api.github.com/users/fullyint/following{/other_user}","gists_url":"https://api.github.com/users/fullyint/gists{/gist_id}","starred_url":"https://api.github.com/users/fullyint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fullyint/subscriptions","organizations_url":"https://api.github.com/users/fullyint/orgs","repos_url":"https://api.github.com/users/fullyint/repos","events_url":"https://api.github.com/users/fullyint/events{/privacy}","received_events_url":"https://api.github.com/users/fullyint/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fullyint/bedrock-ansible","description":"Ansible playbooks for a Bedrock based WordPress LEMP app server","fork":true,"url":"https://api.github.com/repos/fullyint/bedrock-ansible","forks_url":"https://api.github.com/repos/fullyint/bedrock-ansible/forks","keys_url":"https://api.github.com/repos/fullyint/bedrock-ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fullyint/bedrock-ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fullyint/bedrock-ansible/teams","hooks_url":"https://api.github.com/repos/fullyint/bedrock-ansible/hooks","issue_events_url":"https://api.github.com/repos/fullyint/bedrock-ansible/issues/events{/number}","events_url":"https://api.github.com/repos/fullyint/bedrock-ansible/events","assignees_url":"https://api.github.com/repos/fullyint/bedrock-ansible/assignees{/user}","branches_url":"https://api.github.com/repos/fullyint/bedrock-ansible/branches{/branch}","tags_url":"https://api.github.com/repos/fullyint/bedrock-ansible/tags","blobs_url":"https://api.github.com/repos/fullyint/bedrock-ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fullyint/bedrock-ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fullyint/bedrock-ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/fullyint/bedrock-ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fullyint/bedrock-ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/fullyint/bedrock-ansible/languages","stargazers_url":"https://api.github.com/repos/fullyint/bedrock-ansible/stargazers","contributors_url":"https://api.github.com/repos/fullyint/bedrock-ansible/contributors","subscribers_url":"https://api.github.com/repos/fullyint/bedrock-ansible/subscribers","subscription_url":"https://api.github.com/repos/fullyint/bedrock-ansible/subscription","commits_url":"https://api.github.com/repos/fullyint/bedrock-ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/fullyint/bedrock-ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/fullyint/bedrock-ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/fullyint/bedrock-ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/fullyint/bedrock-ansible/contents/{+path}","compare_url":"https://api.github.com/repos/fullyint/bedrock-ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fullyint/bedrock-ansible/merges","archive_url":"https://api.github.com/repos/fullyint/bedrock-ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fullyint/bedrock-ansible/downloads","issues_url":"https://api.github.com/repos/fullyint/bedrock-ansible/issues{/number}","pulls_url":"https://api.github.com/repos/fullyint/bedrock-ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/fullyint/bedrock-ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/fullyint/bedrock-ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fullyint/bedrock-ansible/labels{/name}","releases_url":"https://api.github.com/repos/fullyint/bedrock-ansible/releases{/id}","created_at":"2014-06-08T21:46:39Z","updated_at":"2015-04-08T22:05:35Z","pushed_at":"2015-04-08T23:30:24Z","git_url":"git://github.com/fullyint/bedrock-ansible.git","ssh_url":"git@github.com:fullyint/bedrock-ansible.git","clone_url":"https://github.com/fullyint/bedrock-ansible.git","svn_url":"https://github.com/fullyint/bedrock-ansible","homepage":"http://roots.io/wordpress-stack/","size":366,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"roots:master","ref":"master","sha":"fbf982ef467a1925fbb06d5af49b41ccd9aa9993","user":{"login":"roots","id":4986074,"avatar_url":"https://avatars.githubusercontent.com/u/4986074?v=3","gravatar_id":"","url":"https://api.github.com/users/roots","html_url":"https://github.com/roots","followers_url":"https://api.github.com/users/roots/followers","following_url":"https://api.github.com/users/roots/following{/other_user}","gists_url":"https://api.github.com/users/roots/gists{/gist_id}","starred_url":"https://api.github.com/users/roots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roots/subscriptions","organizations_url":"https://api.github.com/users/roots/orgs","repos_url":"https://api.github.com/users/roots/repos","events_url":"https://api.github.com/users/roots/events{/privacy}","received_events_url":"https://api.github.com/users/roots/received_events","type":"Organization","site_admin":false},"repo":{"id":18852165,"name":"bedrock-ansible","full_name":"roots/bedrock-ansible","owner":{"login":"roots","id":4986074,"avatar_url":"https://avatars.githubusercontent.com/u/4986074?v=3","gravatar_id":"","url":"https://api.github.com/users/roots","html_url":"https://github.com/roots","followers_url":"https://api.github.com/users/roots/followers","following_url":"https://api.github.com/users/roots/following{/other_user}","gists_url":"https://api.github.com/users/roots/gists{/gist_id}","starred_url":"https://api.github.com/users/roots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roots/subscriptions","organizations_url":"https://api.github.com/users/roots/orgs","repos_url":"https://api.github.com/users/roots/repos","events_url":"https://api.github.com/users/roots/events{/privacy}","received_events_url":"https://api.github.com/users/roots/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/roots/bedrock-ansible","description":"Ansible playbooks for a Bedrock based WordPress LEMP app server","fork":false,"url":"https://api.github.com/repos/roots/bedrock-ansible","forks_url":"https://api.github.com/repos/roots/bedrock-ansible/forks","keys_url":"https://api.github.com/repos/roots/bedrock-ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/roots/bedrock-ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/roots/bedrock-ansible/teams","hooks_url":"https://api.github.com/repos/roots/bedrock-ansible/hooks","issue_events_url":"https://api.github.com/repos/roots/bedrock-ansible/issues/events{/number}","events_url":"https://api.github.com/repos/roots/bedrock-ansible/events","assignees_url":"https://api.github.com/repos/roots/bedrock-ansible/assignees{/user}","branches_url":"https://api.github.com/repos/roots/bedrock-ansible/branches{/branch}","tags_url":"https://api.github.com/repos/roots/bedrock-ansible/tags","blobs_url":"https://api.github.com/repos/roots/bedrock-ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/roots/bedrock-ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/roots/bedrock-ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/roots/bedrock-ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/roots/bedrock-ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/roots/bedrock-ansible/languages","stargazers_url":"https://api.github.com/repos/roots/bedrock-ansible/stargazers","contributors_url":"https://api.github.com/repos/roots/bedrock-ansible/contributors","subscribers_url":"https://api.github.com/repos/roots/bedrock-ansible/subscribers","subscription_url":"https://api.github.com/repos/roots/bedrock-ansible/subscription","commits_url":"https://api.github.com/repos/roots/bedrock-ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/roots/bedrock-ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/roots/bedrock-ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/roots/bedrock-ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/roots/bedrock-ansible/contents/{+path}","compare_url":"https://api.github.com/repos/roots/bedrock-ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/roots/bedrock-ansible/merges","archive_url":"https://api.github.com/repos/roots/bedrock-ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/roots/bedrock-ansible/downloads","issues_url":"https://api.github.com/repos/roots/bedrock-ansible/issues{/number}","pulls_url":"https://api.github.com/repos/roots/bedrock-ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/roots/bedrock-ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/roots/bedrock-ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/roots/bedrock-ansible/labels{/name}","releases_url":"https://api.github.com/repos/roots/bedrock-ansible/releases{/id}","created_at":"2014-04-16T19:08:33Z","updated_at":"2015-04-08T03:03:31Z","pushed_at":"2015-04-08T03:58:45Z","git_url":"git://github.com/roots/bedrock-ansible.git","ssh_url":"git@github.com:roots/bedrock-ansible.git","clone_url":"https://github.com/roots/bedrock-ansible.git","svn_url":"https://github.com/roots/bedrock-ansible","homepage":"https://roots.io/bedrock/","size":2249,"stargazers_count":196,"watchers_count":196,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":85,"mirror_url":null,"open_issues_count":19,"forks":85,"open_issues":19,"watchers":196,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/roots/bedrock-ansible/pulls/170"},"html":{"href":"https://github.com/roots/bedrock-ansible/pull/170"},"issue":{"href":"https://api.github.com/repos/roots/bedrock-ansible/issues/170"},"comments":{"href":"https://api.github.com/repos/roots/bedrock-ansible/issues/170/comments"},"review_comments":{"href":"https://api.github.com/repos/roots/bedrock-ansible/pulls/170/comments"},"review_comment":{"href":"https://api.github.com/repos/roots/bedrock-ansible/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/roots/bedrock-ansible/pulls/170/commits"},"statuses":{"href":"https://api.github.com/repos/roots/bedrock-ansible/statuses/24bcb46c37c2249d9120c90adea743b3a01d8a92"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":25,"deletions":1,"changed_files":5}}