{"action":"created","issue":{"url":"https://api.github.com/repos/puppetlabs/puppetlabs-apache/issues/1667","repository_url":"https://api.github.com/repos/puppetlabs/puppetlabs-apache","labels_url":"https://api.github.com/repos/puppetlabs/puppetlabs-apache/issues/1667/labels{/name}","comments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-apache/issues/1667/comments","events_url":"https://api.github.com/repos/puppetlabs/puppetlabs-apache/issues/1667/events","html_url":"https://github.com/puppetlabs/puppetlabs-apache/pull/1667","id":248787031,"number":1667,"title":"[WIP] [Modules 5385] Include support for Apache 2.4 mod_authz_host directives in mod/* templates","user":{"login":"EmersonPrado","id":1783256,"avatar_url":"https://avatars3.githubusercontent.com/u/1783256?v=4","gravatar_id":"","url":"https://api.github.com/users/EmersonPrado","html_url":"https://github.com/EmersonPrado","followers_url":"https://api.github.com/users/EmersonPrado/followers","following_url":"https://api.github.com/users/EmersonPrado/following{/other_user}","gists_url":"https://api.github.com/users/EmersonPrado/gists{/gist_id}","starred_url":"https://api.github.com/users/EmersonPrado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmersonPrado/subscriptions","organizations_url":"https://api.github.com/users/EmersonPrado/orgs","repos_url":"https://api.github.com/users/EmersonPrado/repos","events_url":"https://api.github.com/users/EmersonPrado/events{/privacy}","received_events_url":"https://api.github.com/users/EmersonPrado/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-08T17:20:30Z","updated_at":"2017-08-16T19:57:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/puppetlabs/puppetlabs-apache/pulls/1667","html_url":"https://github.com/puppetlabs/puppetlabs-apache/pull/1667","diff_url":"https://github.com/puppetlabs/puppetlabs-apache/pull/1667.diff","patch_url":"https://github.com/puppetlabs/puppetlabs-apache/pull/1667.patch"},"body":"In the current state, creates helper templates `mod/_allow` and `mod/_require` with, respectively, Apache 2.2 and 2.4 host authorization logic. These aim to be used by various templates in `mod/`. Then, template `mod/status.conf.erb` is modified to use one of these helper templates depending on Apache version.\r\nThe `_require` helper template implements \"Require\" directives from the parameter `requires` provided by the calling class. If this is `undef`, then uses variable `requires_defaults`, also provided by the calling class. In order not to break existing systems, if `requires == undef` but `allow_from` is defined, uses the latter and issue a deprecation warning.\r\n\r\n`requires` parameter can be either of:\r\n- `undef`\r\n- '' or 'unmanaged' (No \"Require\" directive)\r\n- String (`ip <list>`, `host <list>`, `not <something>`, etc.)\r\n- Array of strings (each with same syntax as standalone string)\r\n- Hash\r\n  - Key `requires` - Array of strings (same rule as standalone array)\r\n  - Key `enforce` (optional) - Either of \"Any|All|None\" for `<Require*></Require*>` block\r\n\r\nTested on RHEL 6 and 7 and Debian 7 and 8, but only in Puppet 3 (unfortunately, it's what I have here for the moment)\r\nTest specs were not updated yet"},"comment":{"url":"https://api.github.com/repos/puppetlabs/puppetlabs-apache/issues/comments/322881371","html_url":"https://github.com/puppetlabs/puppetlabs-apache/pull/1667#issuecomment-322881371","issue_url":"https://api.github.com/repos/puppetlabs/puppetlabs-apache/issues/1667","id":322881371,"user":{"login":"EmersonPrado","id":1783256,"avatar_url":"https://avatars3.githubusercontent.com/u/1783256?v=4","gravatar_id":"","url":"https://api.github.com/users/EmersonPrado","html_url":"https://github.com/EmersonPrado","followers_url":"https://api.github.com/users/EmersonPrado/followers","following_url":"https://api.github.com/users/EmersonPrado/following{/other_user}","gists_url":"https://api.github.com/users/EmersonPrado/gists{/gist_id}","starred_url":"https://api.github.com/users/EmersonPrado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmersonPrado/subscriptions","organizations_url":"https://api.github.com/users/EmersonPrado/orgs","repos_url":"https://api.github.com/users/EmersonPrado/repos","events_url":"https://api.github.com/users/EmersonPrado/events{/privacy}","received_events_url":"https://api.github.com/users/EmersonPrado/received_events","type":"User","site_admin":false},"created_at":"2017-08-16T19:57:13Z","updated_at":"2017-08-16T19:57:13Z","body":"@ekohl Good idea about validation. Done!"}}
{"actor":{"display_login":"EmersonPrado"}}